diff --git a/zenoh-flow/src/types/message.rs b/zenoh-flow/src/types/message.rs index 709caa89..361043d2 100644 --- a/zenoh-flow/src/types/message.rs +++ b/zenoh-flow/src/types/message.rs @@ -108,7 +108,7 @@ impl Payload { /// the [Arc] is cloned. // // NOTE: This method is used by, at least, our Python API. - pub fn try_as_gytes(&self) -> Result>> { + pub fn try_as_bytes(&self) -> Result>> { match self { Payload::Bytes(bytes) => Ok(bytes.clone()), Payload::Typed((typed_data, serializer)) => {