tDon't append a newline to redis' pubsub channel. - tordam - A library for peer discovery inside the Tor network (HTM) git clone https://git.parazyd.org/tordam (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit bf06d4818e02fde075fbb2748afc06b37c6ba376 (DIR) parent 5413e1a25d4831ded3096d8f379a9b1cfd5676ab (HTM) Author: parazyd <parazyd@dyne.org> Date: Sat, 27 Oct 2018 10:52:06 +0200 Don't append a newline to redis' pubsub channel. Diffstat: M pkg/damlib/redis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git a/pkg/damlib/redis.go b/pkg/damlib/redis.go t@@ -53,7 +53,7 @@ func PublishToRedis(address string) { username = address onion = address - pubstr = fmt.Sprintf("%s|%s|%s|%s\n", timestamp, username, modtype, onion) + pubstr = fmt.Sprintf("%s|%s|%s|%s", timestamp, username, modtype, onion) RedisCli.Publish(PubSubChan, pubstr) }