chore: fix golint issues (#1396)

This commit is contained in:
Kevin Wan
2021-12-30 17:44:15 +08:00
committed by GitHub
parent b98d46bfd6
commit d6ff30a570
8 changed files with 16 additions and 31 deletions

View File

@@ -58,6 +58,7 @@ func Exclusive() SubOption {
}
}
// WithSubEtcdAccount customizes the Subscriber with given etcd username/password.
func WithSubEtcdAccount(user, pass string) SubOption {
return func(sub *Subscriber) {
internal.AddAccount(sub.endpoints, user, pass)