Skip to content

Commit

Permalink
same as the others
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewb1 committed Sep 5, 2023
1 parent 4868493 commit 44aabfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion messaging/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ def send(self, s: str, dat: Union[bytes, capnp.lib.capnp._DynamicStructBuilder])
dat = dat.to_bytes()
self.sock[s].send(dat)

def wait_for_readers_to_update(self, s: str, timeout: int, dt=0.05) -> bool:
def wait_for_readers_to_update(self, s: str, timeout: int, dt: float = 0.05) -> bool:
for _ in range(int(timeout*(1./dt))):
if self.sock[s].all_readers_updated():
return True
Expand Down

0 comments on commit 44aabfc

Please sign in to comment.