repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
a74b874
parent
6364feb
author
Antonio Mika
date
2024-10-22 23:57:43 +0000 UTC
Decrease loop iteration time for pubsub
1 files changed,  +1, -1
M pipe/cli.go
+1, -1
1@@ -340,7 +340,7 @@ func WishMiddleware(handler *CliHandler) wish.Middleware {
2 								case <-ctx.Done():
3 									cancelFunc()
4 									return
5-								default:
6+								case <-time.After(1 * time.Millisecond):
7 									count := 0
8 									for topic, channel := range pubsub.GetChannels() {
9 										if topic == name {