aboutsummaryrefslogtreecommitdiff
path: root/net/src/codec
diff options
context:
space:
mode:
authorhozan23 <hozan23@karyontech.net>2024-05-23 00:21:59 +0200
committerhozan23 <hozan23@karyontech.net>2024-05-23 00:21:59 +0200
commit7be7f59d5caf38ca0cd7a12a937a2cfdca0268d7 (patch)
treee45a49f8ccbf099a4618e5e3fe981a5b1bf9c421 /net/src/codec
parent2d1a8aea0b9330cd2eaad26eb187644adad6bed9 (diff)
p2p: add rpc server to monitor example
Diffstat (limited to 'net/src/codec')
-rw-r--r--net/src/codec/websocket.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/src/codec/websocket.rs b/net/src/codec/websocket.rs
index b59a55c..8676810 100644
--- a/net/src/codec/websocket.rs
+++ b/net/src/codec/websocket.rs
@@ -19,5 +19,5 @@ pub trait WebSocketEncoder {
pub trait WebSocketDecoder {
type DeItem;
- fn decode(&self, src: &Message) -> Result<Self::DeItem>;
+ fn decode(&self, src: &Message) -> Result<Option<Self::DeItem>>;
}