Skip to content

Commit

Permalink
fix release key update bug
Browse files Browse the repository at this point in the history
  • Loading branch information
hyper.jiang committed Apr 8, 2020
1 parent 81b3b56 commit 5ac5548
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,10 @@ func (app *App) GetNamespaceFromApollo(namespace string) (Items, error) {
return nil, err
}

app.releaseKeyMap.Store(namespace, ns.ReleaseKey)
// only update release key when it's not empty
if ns.ReleaseKey != "" {
app.releaseKeyMap.Store(namespace, ns.ReleaseKey)
}

// add namespace to notification map with default notification id if not existing,
// so that it can be watched in long poll
Expand Down

0 comments on commit 5ac5548

Please sign in to comment.