Skip to content

Commit

Permalink
Merge branch 'master' into chore/update-godisc
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos committed Mar 25, 2024
2 parents 7e431ae + 6f1280e commit 4837e1a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
];
doCheck = false;
# FIXME: This needs to be manually changed when updating modules.
vendorSha256 = "sha256-D0IwlMmCW32T/bfmJjFu3Mlg7pgW4j8IJGZUQ6fnHJQ=";
vendorSha256 = "sha256-pNkh5ZJEhC/X/SoqfWcm3w7W1EGOT3m2dzePM/XuA9w=";
# Fix for 'nix run' trying to execute 'go-waku'.
meta = { mainProgram = "waku"; };
};
Expand Down
4 changes: 2 additions & 2 deletions waku/v2/protocol/relay/waku_relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ func (w *WakuRelay) Publish(ctx context.Context, message *pb.WakuMessage, opts .
return nil, errors.New("not enough peers to publish")
}

w.topicsMutex.RLock()
defer w.topicsMutex.RUnlock()
w.topicsMutex.Lock()
defer w.topicsMutex.Unlock()

pubSubTopic, err := w.upsertTopic(params.pubsubTopic)
if err != nil {
Expand Down

0 comments on commit 4837e1a

Please sign in to comment.