Skip to content

Commit

Permalink
finish zip todo
Browse files Browse the repository at this point in the history
Includes-commit: 68a9196
Replicated-from: #214
  • Loading branch information
cospectrum authored and johnhurt committed May 1, 2024
1 parent e9429e5 commit f408d22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .bleep
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f753f291f3b4c478428b8233cc472d153650eecf
b5cb1b6f679bf1dcd136617b0212eb4f7c4bce84
7 changes: 3 additions & 4 deletions pingora-core/src/server/transfer_fd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ impl Fds {
}

pub fn deserialize(&mut self, binds: Vec<String>, fds: Vec<RawFd>) {
assert!(binds.len() == fds.len());
// TODO: use zip()
for i in 0..binds.len() {
self.map.insert(binds[i].clone(), fds[i]);
assert_eq!(binds.len(), fds.len());
for (bind, fd) in binds.into_iter().zip(fds) {
self.map.insert(bind, fd);
}
}

Expand Down

0 comments on commit f408d22

Please sign in to comment.