Beispiel #1
0
func InitClientHandeler(rn *raft.RaftNode, fsys *fs.FileSystem) *ClientHandeler {
	ch := ClientHandeler{}
	//fmt.Println("RN:", rn,"FS", fsys)
	ch.rn = rn
	ch.client_chans = make(map[uint64](chan *fs.Msg))
	ch.commitChan = rn.GetCommitChannel()
	ch.fsys = fsys
	return &ch
}