Skip to content

Commit

Permalink
Include NodesFile in RaftDir
Browse files Browse the repository at this point in the history
  • Loading branch information
ohkinozomu committed Aug 1, 2024
1 parent 633231b commit 50de104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ func (a *Agent) raftPropose(msg *message.Message) {
}

func (a *Agent) getNodesFile() string {
return a.Config.NodeName + "-" + NodesFile
return filepath.Join(a.Config.RaftDir, a.Config.NodeName+"-"+NodesFile)
}

func (a *Agent) getPeersFile() string {
Expand Down

0 comments on commit 50de104

Please sign in to comment.