Skip to content

Commit

Permalink
Made replicated session more testable
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrobb committed Aug 20, 2019
1 parent 36dc2b4 commit b787b74
Show file tree
Hide file tree
Showing 6 changed files with 2,978 additions and 68 deletions.
6 changes: 3 additions & 3 deletions src/dbnode/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ type client struct {
sync.Mutex

opts MultiClusterOptions
newSessionFn newSessionFn
newSessionFn newReplicatedSessionFn
session AdminSession // default cached session
}

// type newSessionFn func(opts MultiClusterOptions) (replicatedSession, error)
type newSessionFn func(opts MultiClusterOptions) (clientSession, error)
// type newReplicatedSessionFn func(MultiClusterOptions) (replicatedSession, error)
type newReplicatedSessionFn func(MultiClusterOptions, ...replicatedSessionOption) (clientSession, error)

// NewClient creates a new client
func NewClient(opts MultiClusterOptions) (Client, error) {
Expand Down
Loading

0 comments on commit b787b74

Please sign in to comment.