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:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2018-03-15 17:09:58 +0300
committerZeger-Jan van de Weg <zegerjan@gitlab.com>2018-03-15 17:09:58 +0300
commitfcbea47122720ee7820ccfd10cf9bc57368a8968 (patch)
tree5c657278ff2f44e706f56c8a070e175f6f2f4dfc
parenta6d66aa0d905affcbb47a04331c8da7046c983bc (diff)
parent322f5da5bd31c8b968770ae515cc0378a5e7119d (diff)
Merge branch 'update-comments' into 'master'
Update some outdated comments See merge request gitlab-org/gitaly!628
-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
}