Properly initialize response_channels

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio ScandurraandNathan Sobo committed 2021-09-23 17:50:13 +02:00
1 parent 9853e496af
commit 4eb012c3d6
1 file changed
+1 -1
+1 -1
View File
@@ -115,7 +115,7 @@ impl Peer {
let connection_state = ConnectionState {
outgoing_tx,
next_message_id: Default::default(),
response_channels: Default::default(),
response_channels: Arc::new(Mutex::new(Some(Default::default()))),
};
let mut writer = MessageStream::new(connection.tx);
let mut reader = MessageStream::new(connection.rx);