oops; add missing return statement from server.send

This commit is contained in:
jesopo 2020-04-05 13:19:19 +01:00
parent 1c7caf9039
commit b8ddc6883d

View file

@ -40,7 +40,7 @@ class Server(IServer):
async def send(self, line: Line, priority=SendPriority.DEFAULT) -> Future:
prio_line = SentLine(priority, line)
await self._write_queue.put(prio_line)
prio_line.future
return prio_line.future
def set_throttle(self, rate: int, time: float):
self.throttle.rate_limit = rate