diff --git a/_example/kv1/main.go b/_example/kv1/main.go index fb2b07c..7f6de0a 100644 --- a/_example/kv1/main.go +++ b/_example/kv1/main.go @@ -33,8 +33,8 @@ func main() { zongzi.SetLogLevelDebug() ctx := context.Background() agent, err := zongzi.NewAgent(*name, strings.Split(*peers, ","), - zongzi.WithRaftDir(dataDir+"/raft"), - zongzi.WithWALDir(dataDir+"/wal"), + zongzi.WithRaftDir(*dataDir+"/raft"), + zongzi.WithWALDir(*dataDir+"/wal"), zongzi.WithGossipAddress(*gossipAddr), zongzi.WithRaftAddress(*raftAddr), zongzi.WithApiAddress(*zongziAddr),