Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1075)

Unified Diff: server/prpc/auth.go

Issue 1605363002: common/prpc, tools/cmd/cproto: prpc client (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@master
Patch Set: rebased and addressed comments Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « common/retry/transient.go ('k') | server/prpc/decoding.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: server/prpc/auth.go
diff --git a/server/prpc/auth.go b/server/prpc/auth.go
index 62d7793333f4469e044e8693fc9ca70072c21f71..2931b6d3a0408d7884f3749063f154b69ca115b3 100644
--- a/server/prpc/auth.go
+++ b/server/prpc/auth.go
@@ -20,12 +20,12 @@ var defaultAuth = struct {
// Panics if a is nil or called twice.
func RegisterDefaultAuth(a auth.Authenticator) {
if a == nil {
- panicf("a is nil")
+ panic("a is nil")
}
defaultAuth.Lock()
defer defaultAuth.Unlock()
if defaultAuth.Authenticator != nil {
- panicf("default prpc authenticator is already set")
+ panic("default prpc authenticator is already set")
}
defaultAuth.Authenticator = a
}
« no previous file with comments | « common/retry/transient.go ('k') | server/prpc/decoding.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698