From 5effa154b464faa6a9ca88296df831eb7f0b8955 Mon Sep 17 00:00:00 2001 From: zhoulin xie Date: Sun, 24 Feb 2019 16:12:00 +0800 Subject: [PATCH] auth/simple_token.go: fix plog.Panicf error message Signed-off-by: zhoulin xie --- auth/simple_token.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/simple_token.go b/auth/simple_token.go index 49797cbd7c1..934978c9857 100644 --- a/auth/simple_token.go +++ b/auth/simple_token.go @@ -14,7 +14,7 @@ package auth -// CAUTION: This randum number based token mechanism is only for testing purpose. +// CAUTION: This random number based token mechanism is only for testing purpose. // JWT based mechanism will be added in the near future. import ( @@ -134,7 +134,7 @@ func (t *tokenSimple) assignSimpleTokenToUser(username, token string) { zap.String("token", token), ) } else { - plog.Panicf("token %s is alredy used", token) + plog.Panicf("token %s is already used", token) } }