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 ffe00fa commit 6886436Copy full SHA for 6886436
src/ext.rs
@@ -115,3 +115,9 @@ where
115
}
116
117
118
+
119
+pub(crate) fn token_to_metadata(tok: codemp_proto::common::Token) -> tonic::Result<tonic::metadata::MetadataValue<tonic::metadata::Ascii>> {
120
+ tonic::metadata::MetadataValue::try_from(tok.token).map_err(|e| {
121
+ tonic::Status::internal(format!("failed representing token to string: {e}"))
122
+ })
123
+}
0 commit comments