File tree 4 files changed +26
-17
lines changed
4 files changed +26
-17
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ A capability provider template built for implementation of custom capabilities.
12
12
status = " actively-developed"
13
13
14
14
[dependencies ]
15
- anyhow = " 1.0.82 "
16
- serde = { version = " 1.0.197 " , features = [" derive" ] }
17
- tokio = { version = " 1.37.0 " , features = [" full" ] }
15
+ anyhow = " 1"
16
+ serde = { version = " 1" , features = [" derive" ] }
17
+ tokio = { version = " 1" , features = [" full" ] }
18
18
tracing = " 0.1"
19
- wasmcloud-provider-sdk = { version = " 0.11 .0" , features = [" otel" ] }
20
- wit-bindgen-wrpc = " 0.7 .0"
19
+ wasmcloud-provider-sdk = { version = " 0.13 .0" , features = [" otel" ] }
20
+ wit-bindgen-wrpc = " 0.9 .0"
Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ impl CustomTemplateProvider {
62
62
// This is a generated function based on the contents in your `wit/world.wit` file.
63
63
let connection = wasmcloud_provider_sdk:: get_connection ( ) ;
64
64
serve_provider_exports (
65
- & connection. get_wrpc_client ( connection. provider_key ( ) ) ,
65
+ & connection
66
+ . get_wrpc_client ( connection. provider_key ( ) )
67
+ . await
68
+ . context ( "failed to get wrpc client" ) ?,
66
69
provider,
67
70
shutdown,
68
71
bindings:: serve,
@@ -122,7 +125,10 @@ impl Handler<Option<Context>> for CustomTemplateProvider {
122
125
name : "sup" . to_string ( ) ,
123
126
count : 3 ,
124
127
} ;
125
- let client = wasmcloud_provider_sdk:: get_connection ( ) . get_wrpc_client ( component_id) ;
128
+ let client = wasmcloud_provider_sdk:: get_connection ( )
129
+ . get_wrpc_client ( component_id)
130
+ . await
131
+ . context ( "failed to get wrpc client" ) ?;
126
132
match process_data:: process ( & client, None , & sample_data) . await {
127
133
Ok ( response) => {
128
134
last_response = Some ( response) ;
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ A capability provider that satisfies the 'wasmcloud:messaging' interface using N
12
12
status = " actively-developed"
13
13
14
14
[dependencies ]
15
- anyhow = " 1.0.86 "
16
- async-nats = " 0.35.1 "
17
- bytes = " 1.6.0 "
18
- futures = " 0.3.30 "
19
- serde = { version = " 1.0.203 " , features = [" derive" ] }
20
- tokio = { version = " 1.37.0 " , features = [ " full" ] }
21
- tracing = " 0.1.40 "
22
- wasmcloud-provider-sdk = " 0.9.1 "
23
- wit-bindgen-wrpc = " 0.6.3 "
15
+ anyhow = " 1"
16
+ async-nats = " 0.36 "
17
+ bytes = " 1"
18
+ futures = " 0.3"
19
+ serde = { version = " 1" , features = [" derive" ] }
20
+ tokio = { version = " 1" , features = [ " full" ] }
21
+ tracing = " 0.1"
22
+ wasmcloud-provider-sdk = " 0.13.0 "
23
+ wit-bindgen-wrpc = " 0.9.0 "
Original file line number Diff line number Diff line change @@ -62,7 +62,10 @@ impl NatsMessagingProvider {
62
62
. context ( "failed to run provider" ) ?;
63
63
let connection = get_connection ( ) ;
64
64
serve_provider_exports (
65
- & connection. get_wrpc_client ( connection. provider_key ( ) ) ,
65
+ & connection
66
+ . get_wrpc_client ( connection. provider_key ( ) )
67
+ . await
68
+ . context ( "failed to get wrpc client" ) ?,
66
69
provider,
67
70
shutdown,
68
71
bindings:: serve,
You can’t perform that action at this time.
0 commit comments