Skip to content

Commit

Permalink
connectivity: Get rid of unused Reporter interface. (#3875)
Browse files Browse the repository at this point in the history
  • Loading branch information
easwars committed Sep 14, 2020
1 parent 6591123 commit 86d33e4
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions connectivity/connectivity.go
Expand Up @@ -22,8 +22,6 @@
package connectivity

import (
"context"

"google.golang.org/grpc/grpclog"
)

Expand Down Expand Up @@ -63,13 +61,3 @@ const (
// Shutdown indicates the ClientConn has started shutting down.
Shutdown
)

// Reporter reports the connectivity states.
type Reporter interface {
// CurrentState returns the current state of the reporter.
CurrentState() State
// WaitForStateChange blocks until the reporter's state is different from the given state,
// and returns true.
// It returns false if <-ctx.Done() can proceed (ctx got timeout or got canceled).
WaitForStateChange(context.Context, State) bool
}

0 comments on commit 86d33e4

Please sign in to comment.