Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2018-03-14 18:21:22 +0300
committerJacob Vosmaer <jacob@gitlab.com>2018-03-14 18:21:22 +0300
commit322f5da5bd31c8b968770ae515cc0378a5e7119d (patch)
tree78437906cd278be0e6a3bd631301b586ff517a01
parent43e074e155dac96f96b30f028aa6c194f89d3e35 (diff)
Update some outdated comments
-rw-r--r--internal/config/auth.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/config/auth.go b/internal/config/auth.go
index b5bc8cc0b..2424dd4fa 100644
--- a/internal/config/auth.go
+++ b/internal/config/auth.go
@@ -12,11 +12,10 @@ type Auth struct {
Token Token `toml:"token"`
}
-// Token is a string of the form "name:secret". It specifies a Gitaly
-// authentication token.
+// Token is a Gitaly authentication token.
type Token string
-// Equal tests if t is equal to the token specified by name and secret.
+// Equal tests if t is equal to the other token
func (t Token) Equal(other string) bool {
return subtle.ConstantTimeCompare([]byte(other), []byte(t)) == 1
}