Skip to content

Commit

Permalink
Rename server.Joiner.Router to Config.
Browse files Browse the repository at this point in the history
  • Loading branch information
lthibault committed Jan 3, 2023
1 parent e71d2be commit 0f0ac78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ type Joiner struct {
fx.In

Log log.Logger `optional:"true"`
Router ClusterConfig `optional:"true"`
Cluster ClusterConfig `optional:"true"`
Debugger DebugConfig `optional:"true"`
}

// Join the cluster. Note that callers MUST call Bootstrap() on
// the returned *Node to complete the bootstrap process.
func (j Joiner) Join(vat casm.Vat, r Router) (*Node, error) {
c, err := j.Router.New(vat, r, j.Log)
c, err := j.Cluster.New(vat, r, j.Log)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0f0ac78

Please sign in to comment.