We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89b48bd commit 6991ce7Copy full SHA for 6991ce7
src/dispatcher.rs
@@ -453,7 +453,8 @@ impl Dispatcher {
453
}
454
455
fn on_grpc_receive(&self, token_id: u32, response_size: usize) {
456
- if let Some(context_id) = self.grpc_callouts.borrow_mut().remove(&token_id) {
+ let context_id = self.grpc_callouts.borrow_mut().remove(&token_id);
457
+ if let Some(context_id) = context_id {
458
if let Some(http_stream) = self.http_streams.borrow_mut().get_mut(&context_id) {
459
self.active_id.set(context_id);
460
hostcalls::set_effective_context(context_id).unwrap();
0 commit comments