via

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

commit
a5fbfe0af41430e80dc6c6dcb73ba70279758e06
parent
80985760eb91605dd57c2d95adaa0a70fe799060
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2021-03-22 20:08
avoid passing Lock by value

Diffstat

M via.go 2 +-

1 files changed, 1 insertions, 1 deletions


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

@@ -50,7 +50,7 @@ func getStorePath(key string) string {
   50    50 	return path.Join(dir, hash)
   51    51 }
   52    52 
   53    -1 func (topic Topic) storeHistory(key string) {
   -1    53 func (topic *Topic) storeHistory(key string) {
   54    54 	path := getStorePath(fmt.Sprintf("%s:%s", key, topic.password))
   55    55 
   56    56 	content, err := json.Marshal(topic.history)