fix typos (#3111)
This commit is contained in:

committed by
Easwar Swaminathan

parent
041ead0785
commit
a7c1650ef7
@ -105,7 +105,7 @@ retryConnection:
|
||||
continue retryConnection
|
||||
}
|
||||
|
||||
// As a message has been received, removes the need for backoff for the next retry by reseting the try count.
|
||||
// As a message has been received, removes the need for backoff for the next retry by resetting the try count.
|
||||
tryCnt = 0
|
||||
if resp.Status == healthpb.HealthCheckResponse_SERVING {
|
||||
setConnectivityState(connectivity.Ready)
|
||||
|
@ -139,7 +139,7 @@ func (s *Server) setServingStatusLocked(service string, servingStatus healthpb.H
|
||||
// Shutdown sets all serving status to NOT_SERVING, and configures the server to
|
||||
// ignore all future status changes.
|
||||
//
|
||||
// This changes serving status for all services. To set status for a perticular
|
||||
// This changes serving status for all services. To set status for a particular
|
||||
// services, call SetServingStatus().
|
||||
func (s *Server) Shutdown() {
|
||||
s.mu.Lock()
|
||||
@ -153,7 +153,7 @@ func (s *Server) Shutdown() {
|
||||
// Resume sets all serving status to SERVING, and configures the server to
|
||||
// accept all future status changes.
|
||||
//
|
||||
// This changes serving status for all services. To set status for a perticular
|
||||
// This changes serving status for all services. To set status for a particular
|
||||
// services, call SetServingStatus().
|
||||
func (s *Server) Resume() {
|
||||
s.mu.Lock()
|
||||
|
@ -34,7 +34,7 @@ type Logger interface {
|
||||
}
|
||||
|
||||
// binLogger is the global binary logger for the binary. One of this should be
|
||||
// built at init time from the configuration (environment varialbe or flags).
|
||||
// built at init time from the configuration (environment variable or flags).
|
||||
//
|
||||
// It is used to get a methodLogger for each individual method.
|
||||
var binLogger Logger
|
||||
|
@ -43,7 +43,7 @@ import (
|
||||
// Foo.
|
||||
//
|
||||
// If two configs exist for one certain method or service, the one specified
|
||||
// later overrides the privous config.
|
||||
// later overrides the previous config.
|
||||
func NewLoggerFromConfigString(s string) Logger {
|
||||
if s == "" {
|
||||
return nil
|
||||
|
@ -63,7 +63,7 @@ func (ns *noopSink) Close() error { return nil }
|
||||
|
||||
// newWriterSink creates a binary log sink with the given writer.
|
||||
//
|
||||
// Write() marshalls the proto message and writes it to the given writer. Each
|
||||
// Write() marshals the proto message and writes it to the given writer. Each
|
||||
// message is prefixed with a 4 byte big endian unsigned integer as the length.
|
||||
//
|
||||
// No buffer is done, Close() doesn't try to close the writer.
|
||||
|
@ -28,9 +28,9 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
// WithResolverBuilder is exported by dialoptions.go
|
||||
// WithResolverBuilder is set by dialoptions.go
|
||||
WithResolverBuilder interface{} // func (resolver.Builder) grpc.DialOption
|
||||
// WithHealthCheckFunc is not exported by dialoptions.go
|
||||
// WithHealthCheckFunc is set by dialoptions.go
|
||||
WithHealthCheckFunc interface{} // func (HealthChecker) DialOption
|
||||
// HealthCheckFunc is used to provide client-side LB channel health checking
|
||||
HealthCheckFunc HealthChecker
|
||||
|
@ -111,7 +111,7 @@ func check(efer Errorfer, timeout time.Duration) {
|
||||
}
|
||||
|
||||
// Check looks at the currently-running goroutines and checks if there are any
|
||||
// interestring (created by gRPC) goroutines leaked. It waits up to 10 seconds
|
||||
// interesting (created by gRPC) goroutines leaked. It waits up to 10 seconds
|
||||
// in the error cases.
|
||||
func Check(efer Errorfer) {
|
||||
check(efer, 10*time.Second)
|
||||
|
@ -404,8 +404,8 @@ const (
|
||||
outPayload
|
||||
outHeader
|
||||
// TODO: test outTrailer ?
|
||||
connbegin
|
||||
connend
|
||||
connBegin
|
||||
connEnd
|
||||
)
|
||||
|
||||
func checkBegin(t *testing.T, d *gotData, e *expectedData) {
|
||||
@ -1040,17 +1040,17 @@ func checkClientStats(t *testing.T, got []*gotData, expect *expectedData, checkF
|
||||
checkFuncs[end].f(t, s, expect)
|
||||
checkFuncs[end].c--
|
||||
case *stats.ConnBegin:
|
||||
if checkFuncs[connbegin].c <= 0 {
|
||||
if checkFuncs[connBegin].c <= 0 {
|
||||
t.Fatalf("unexpected stats: %T", s.s)
|
||||
}
|
||||
checkFuncs[connbegin].f(t, s, expect)
|
||||
checkFuncs[connbegin].c--
|
||||
checkFuncs[connBegin].f(t, s, expect)
|
||||
checkFuncs[connBegin].c--
|
||||
case *stats.ConnEnd:
|
||||
if checkFuncs[connend].c <= 0 {
|
||||
if checkFuncs[connEnd].c <= 0 {
|
||||
t.Fatalf("unexpected stats: %T", s.s)
|
||||
}
|
||||
checkFuncs[connend].f(t, s, expect)
|
||||
checkFuncs[connend].c--
|
||||
checkFuncs[connEnd].f(t, s, expect)
|
||||
checkFuncs[connEnd].c--
|
||||
default:
|
||||
t.Fatalf("unexpected stats: %T", s.s)
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ var (
|
||||
useTLS = flag.Bool("use_tls", false, "Connection uses TLS if true, else plain TCP")
|
||||
testCA = flag.Bool("use_test_ca", false, "Whether to replace platform root CAs with test CA as the CA root")
|
||||
tlsServerName = flag.String("server_host_override", "foo.test.google.fr", "The server name use to verify the hostname returned by TLS handshake if it is not empty. Otherwise, --server_host is used.")
|
||||
caFile = flag.String("ca_file", "", "The file containning the CA root cert file")
|
||||
caFile = flag.String("ca_file", "", "The file containing the CA root cert file")
|
||||
)
|
||||
|
||||
// testCaseWithWeight contains the test case type and its weight.
|
||||
|
@ -30,14 +30,14 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
metricsServerAddress = flag.String("metrics_server_address", "", "The metrics server addresses in the fomrat <hostname>:<port>")
|
||||
metricsServerAddress = flag.String("metrics_server_address", "", "The metrics server addresses in the format <hostname>:<port>")
|
||||
totalOnly = flag.Bool("total_only", false, "If true, this prints only the total value of all gauges")
|
||||
)
|
||||
|
||||
func printMetrics(client metricspb.MetricsServiceClient, totalOnly bool) {
|
||||
stream, err := client.GetAllGauges(context.Background(), &metricspb.EmptyMessage{})
|
||||
if err != nil {
|
||||
grpclog.Fatalf("failed to call GetAllGuages: %v", err)
|
||||
grpclog.Fatalf("failed to call GetAllGauges: %v", err)
|
||||
}
|
||||
|
||||
var (
|
||||
|
Reference in New Issue
Block a user