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

Unified Diff: server/prpc/auth.go

Issue 1636873006: server/prpc: updated server according to protocol (Closed) Base URL: https://github.com/luci/luci-go@master
Patch Set: Removed some panics, malformed JSON now errors. 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
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/prpc/doc.go ('k') | server/prpc/decoding.go » ('j') | server/prpc/encoding.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698