fix mutex problems and merge multiple servingstatus to one single test

This commit is contained in:
yangzhouhan
2015-07-23 14:45:27 -07:00
parent ee67f58505
commit 9d4ac0cac5
4 changed files with 32 additions and 61 deletions

View File

@ -165,7 +165,7 @@ func Invoke(ctx context.Context, method string, args, reply interface{}, cc *Cli
return toRPCErr(err)
}
if EnableTracing {
c.traceInfo.tr.LazyLog(&fmtStringer{"sent: %v", []interface{}{payload{args}}}, true)
c.traceInfo.tr.LazyLog(payload{args}, true)
}
stream, err = sendRequest(ctx, cc.dopts.codec, callHdr, t, args, topts)
if err != nil {
@ -184,7 +184,7 @@ func Invoke(ctx context.Context, method string, args, reply interface{}, cc *Cli
continue
}
if EnableTracing {
c.traceInfo.tr.LazyLog(&fmtStringer{"received: %v", []interface{}{payload{reply}}}, true)
c.traceInfo.tr.LazyLog(payload{reply}, true)
}
t.CloseStream(stream, lastErr)
if lastErr != nil {