mirror of
https://github.com/urbit/shrub.git
synced 2024-12-19 08:32:39 +03:00
Merge pull request #3230 from urbit/pp/ames-slow-startup
king: ames: add stderr when sending before having turfs
This commit is contained in:
commit
8e04cd12f0
@ -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