Skip to content

Commit 20b1226

Browse files
committed
fix
1 parent e1551b2 commit 20b1226

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dispatcher.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,15 +483,15 @@ impl Dispatcher {
483483
if let Some(http_stream) = self.http_streams.borrow_mut().get_mut(&context_id) {
484484
self.active_id.set(context_id);
485485
hostcalls::set_effective_context(context_id).unwrap();
486-
http_stream.on_grpc_stream_initial_metadata(token_id, trailers);
486+
http_stream.on_grpc_stream_trailing_metadata(token_id, trailers);
487487
} else if let Some(stream) = self.streams.borrow_mut().get_mut(&context_id) {
488488
self.active_id.set(context_id);
489489
hostcalls::set_effective_context(context_id).unwrap();
490-
stream.on_grpc_stream_initial_metadata(token_id, trailers);
490+
stream.on_grpc_stream_trailing_metadata(token_id, trailers);
491491
} else if let Some(root) = self.roots.borrow_mut().get_mut(&context_id) {
492492
self.active_id.set(context_id);
493493
hostcalls::set_effective_context(context_id).unwrap();
494-
root.on_grpc_stream_initial_metadata(token_id, trailers);
494+
root.on_grpc_stream_trailing_metadata(token_id, trailers);
495495
}
496496
}
497497

@@ -672,7 +672,7 @@ pub extern "C" fn proxy_on_grpc_receive(_context_id: u32, token_id: u32, respons
672672
}
673673

674674
#[no_mangle]
675-
pub extern "C" fn proxy_on_grpc_trailing_metadata(_context_id: u32, token_id: u32, trailers: u32) {
675+
pub extern "C" fn proxy_receive_on_grpc_trailing_metadata(_context_id: u32, token_id: u32, trailers: u32) {
676676
DISPATCHER.with(|dispatcher| dispatcher.on_grpc_receive_trailing_metadata(token_id, trailers))
677677
}
678678

0 commit comments

Comments
 (0)