diff --git a/go/cmd/betabot/main.go b/go/cmd/betabot/main.go index f3b6947b85..1949dcc947 100644 --- a/go/cmd/betabot/main.go +++ b/go/cmd/betabot/main.go @@ -608,7 +608,7 @@ func (bot *Bot) saveStore() { if err := ioutil.WriteFile(bot.storePath, data, 0o600); err != nil { panic(fmt.Errorf("write store file: %w", err)) } - bot.storeWholeConvLock.RUnlock() + bot.storeWholeConvLock.Unlock() bot.storeMutex.RUnlock() }