From e3cf9d1e3ace8595ceb00e4d2c914c6e5c212bdd Mon Sep 17 00:00:00 2001 From: sfw Date: Sat, 18 Aug 2018 15:24:05 +0800 Subject: [PATCH] ch4-5-fix typos --- ch4-rpc/ch4-05-grpc-hack.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ch4-rpc/ch4-05-grpc-hack.md b/ch4-rpc/ch4-05-grpc-hack.md index 2bf8eff..0b6a73c 100644 --- a/ch4-rpc/ch4-05-grpc-hack.md +++ b/ch4-rpc/ch4-05-grpc-hack.md @@ -211,7 +211,7 @@ type Authentication struct { } func (a *Authentication) GetRequestMetadata(context.Context, ...string) (map[string]string, error) { - return map[string]string{"login": a.Login, "password": a.Password}, nil + return map[string]string{"user":a.User, "password": a.Password}, nil } func (a *Authentication) RequireTransportSecurity() bool { return false