Skip to content

Commit

Permalink
Make timeout an optional param in KeyWatcher.updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhikaruevans authored Oct 16, 2024
1 parent 3aa879e commit 8bca3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nats/js/kv.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ async def stop(self):
"""
await self._sub.unsubscribe()

async def updates(self, timeout=5.0):
async def updates(self, timeout: Optional[float] = 5.0):
"""
updates fetches the next update from a watcher.
"""
Expand Down

0 comments on commit 8bca3c1

Please sign in to comment.