Skip to content

Commit

Permalink
CR: variant name Old->V1
Browse files Browse the repository at this point in the history
  • Loading branch information
t4lz committed Jan 22, 2025
1 parent 0953ce5 commit 6bd2ffc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mirrord/agent/src/dns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ use crate::{

#[derive(Debug)]
pub(crate) enum ClientGetAddrInfoRequest {
Old(GetAddrInfoRequest),
V1(GetAddrInfoRequest),
V2(GetAddrInfoRequestV2),
}

impl ClientGetAddrInfoRequest {
pub(crate) fn into_v2(self) -> GetAddrInfoRequestV2 {
match self {
ClientGetAddrInfoRequest::Old(old_req) => old_req.into(),
ClientGetAddrInfoRequest::V1(old_req) => old_req.into(),
ClientGetAddrInfoRequest::V2(v2_req) => v2_req,
}
}
Expand Down
2 changes: 1 addition & 1 deletion mirrord/agent/src/entrypoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ impl ClientConnectionHandler {
}
ClientMessage::GetAddrInfoRequest(request) => {
self.dns_api
.make_request(ClientGetAddrInfoRequest::Old(request))
.make_request(ClientGetAddrInfoRequest::V1(request))
.await?;
}
ClientMessage::GetAddrInfoRequestV2(request) => {
Expand Down

0 comments on commit 6bd2ffc

Please sign in to comment.