mirror of
https://github.com/urbit/shrub.git
synced 2024-12-20 09:21:42 +03:00
king: ames: add stderr when sending before having turfs
This commit is contained in:
parent
5e65abcb7a
commit
1691c984dd
@ -229,7 +229,7 @@ ames env who isFake enqueueEv stderr = (initialEvents, runAmes)
|
|||||||
|
|
||||||
NewtEfSend (_id, ()) dest (MkBytes bs) -> do
|
NewtEfSend (_id, ()) dest (MkBytes bs) -> do
|
||||||
atomically (readTVar aTurfs) >>= \case
|
atomically (readTVar aTurfs) >>= \case
|
||||||
Nothing -> pure ()
|
Nothing -> stderr "ames: send before turfs" >> pure ()
|
||||||
Just turfs -> sendPacket drv mode dest bs
|
Just turfs -> sendPacket drv mode dest bs
|
||||||
|
|
||||||
sendPacket :: AmesDrv -> NetworkMode -> AmesDest -> ByteString -> RIO e ()
|
sendPacket :: AmesDrv -> NetworkMode -> AmesDest -> ByteString -> RIO e ()
|
||||||
|
Loading…
Reference in New Issue
Block a user