Skip to content

Commit

Permalink
Merge pull request #43 from meitu/fix/auth
Browse files Browse the repository at this point in the history
Fix: missing return
  • Loading branch information
nioshield committed Jan 23, 2019
2 parents 3c85ece + 72d848a commit 9f6c3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ func Auth(ctx *Context) {
namespace, err := Verify(token, serverauth)
if err != nil {
resp.ReplyError(ctx.Out, "ERR invalid password")
return
}
ctx.Client.Authenticated = true
metrics.GetMetrics().ConnectionOnlineGaugeVec.WithLabelValues(ctx.Client.Namespace).Dec()
metrics.GetMetrics().ConnectionOnlineGaugeVec.WithLabelValues(string(namespace)).Inc()
ctx.Client.Namespace = string(namespace)
Expand Down

0 comments on commit 9f6c3f1

Please sign in to comment.