Browse Source

adjust to upgraded Raft library

pull/2/head
Chris Lu 11 years ago
parent
commit
da0480ad72
  1. 2
      go/weed/weed_server/raft_server.go

2
go/weed/weed_server/raft_server.go

@ -42,7 +42,7 @@ func NewRaftServer(r *mux.Router, peers []string, httpAddr string, dataDir strin
raft.RegisterCommand(&topology.MaxVolumeIdCommand{})
var err error
transporter := raft.NewHTTPTransporter("/cluster")
transporter := raft.NewHTTPTransporter("/cluster", 0)
transporter.Transport.MaxIdleConnsPerHost = 1024
s.raftServer, err = raft.NewServer(s.httpAddr, s.dataDir, transporter, nil, topo, "")

Loading…
Cancel
Save