diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2018-03-15 17:09:58 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2018-03-15 17:09:58 +0300 |
commit | fcbea47122720ee7820ccfd10cf9bc57368a8968 (patch) | |
tree | 5c657278ff2f44e706f56c8a070e175f6f2f4dfc | |
parent | a6d66aa0d905affcbb47a04331c8da7046c983bc (diff) | |
parent | 322f5da5bd31c8b968770ae515cc0378a5e7119d (diff) |
Merge branch 'update-comments' into 'master'
Update some outdated comments
See merge request gitlab-org/gitaly!628
-rw-r--r-- | internal/config/auth.go | 5 |
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 } |