Skip to content

Commit

Permalink
dont write to routes cache if None (#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolyatmax authored May 30, 2024
1 parent 924ab05 commit 82ab7a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plane/src/proxy/route_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ impl RouteMap {
}

pub fn receive(&self, response: RouteInfoResponse) {
self.insert(response.token, response.route_info);
if response.route_info.is_some() {
self.insert(response.token, response.route_info);
}
}

pub fn remove_backend(&self, backend: &BackendName) {
Expand Down

0 comments on commit 82ab7a9

Please sign in to comment.