Skip to content

Commit

Permalink
branching out to handle protocol handshake
Browse files Browse the repository at this point in the history
  • Loading branch information
meowjesty committed Jun 6, 2024
1 parent 8cb9862 commit 7e9c564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions mirrord/intproxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ impl IntProxy {
.await
}
DaemonMessage::SwitchProtocolVersionResponse(protocol_version) => {
// TODO(alex) [high]: Here we have the agent/protocol version.
if CLIENT_READY_FOR_LOGS.matches(&protocol_version) {
self.task_txs.agent.send(ClientMessage::ReadyForLogs).await;
}
Expand Down
2 changes: 1 addition & 1 deletion mirrord/protocol/src/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ pub enum FileRequest {
OpenRelative(OpenRelativeFileRequest),
Read(ReadFileRequest),
ReadLimited(ReadLimitedFileRequest),
ReadLink(ReadLinkFileRequest),
Seek(SeekFileRequest),
Write(WriteFileRequest),
WriteLimited(WriteLimitedFileRequest),
Expand All @@ -82,6 +81,7 @@ pub enum FileRequest {
ReadDir(ReadDirRequest),
CloseDir(CloseDirRequest),
GetDEnts64(GetDEnts64Request),
ReadLink(ReadLinkFileRequest),
}

/// Minimal mirrord-protocol version that allows `ClientMessage::ReadyForLogs` message.
Expand Down

0 comments on commit 7e9c564

Please sign in to comment.