Skip to content

Commit

Permalink
Revert "Add private method to Client interface to prevent implementat…
Browse files Browse the repository at this point in the history
…ion"
  • Loading branch information
d1egoaz authored Oct 21, 2020
1 parent ae17db9 commit 1c28834
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ type Client interface {

// Closed returns true if the client has already had Close called on it
Closed() bool

// A private method to prevent users implementing the interface for compatibility
private()
}

const (
Expand Down Expand Up @@ -187,8 +184,6 @@ func NewClient(addrs []string, conf *Config) (Client, error) {
return client, nil
}

func (client *client) private() {}

func (client *client) Config() *Config {
return client.conf
}
Expand Down

0 comments on commit 1c28834

Please sign in to comment.