mirror of
https://github.com/chatmail/relay.git
synced 2026-05-10 16:04:37 +00:00
use "walrus" operator (didn't know about it, doh!)
This commit is contained in:
@@ -6,11 +6,7 @@ import traceback
|
||||
|
||||
|
||||
def _run_loop(cmd_channel):
|
||||
while 1:
|
||||
cmd = cmd_channel.receive()
|
||||
if cmd is None:
|
||||
break
|
||||
|
||||
while cmd := cmd_channel.receive():
|
||||
cmd_channel.send(_handle_one_request(cmd))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user