repos / pico

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

commit
497b8a7
parent
ae44e80
author
Antonio Mika
date
2024-10-04 14:03:20 +0000 UTC
Fix incomplete messages
1 files changed,  +1, -1
M shared/sendlog.go
+1, -1
1@@ -222,7 +222,7 @@ func (c *SendLogWriter) Write(data []byte) (int, error) {
2 	}
3 
4 	select {
5-	case c.Messages <- data:
6+	case c.Messages <- slices.Clone(data):
7 		n = len(data)
8 	case <-time.After(c.Timeout):
9 		err = fmt.Errorf("unable to send data within timeout")