via

Simple pubsub server inspired by https://patchbay.pub/
git clone https://git.ce9e.org/via.git

commit
df9fb847ca9a1e22bd7a2490f6d55d6f5af6eae6
parent
d980c035990d1d9ee8113d0521f0d2ddbbce5072
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-06-16 07:33
fixup b5f02bd

Diffstat

M via.go 5 ++++-

1 files changed, 4 insertions, 1 deletions


diff --git a/via.go b/via.go

@@ -196,7 +196,10 @@ func getTopic(key string) *Topic {
  196   196 	topic, exists := topics[key]
  197   197 
  198   198 	if !exists {
  199    -1 		filename := base64.URLEncoding.EncodeToString([]byte(key))
   -1   199 		// keep this format for backwards compatibility
   -1   200 		filename := base64.URLEncoding.EncodeToString([]byte(
   -1   201 			fmt.Sprintf("%s:", key)),
   -1   202 		)
  200   203 		topic = &Topic{
  201   204 			channels:   make(map[chan Msg]bool, 0),
  202   205 			hasHistory: hasHistory(key),