This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
predOfSucc:=getNodeMessage(nodeAdress, node.successor.adress) // id eller adress?
gofunc() { node.transport.send(predOfSucc) }()
gonode.transport.send(predOfSucc)
time:=time.NewTimer(time.Millisecond*5000)
for {
select {
caser:=<-node.responseQ:
//fmt.Println("case 1 stab: ")
between:= ((between([]byte(node.nodeId), []byte(node.successor.nodeId), []byte(r.Key))) &&r.Key!=""&&node.nodeId!=r.Key)//r.key = "" för att connecta sista nodens successor
between:= (between([]byte(node.nodeId), []byte(node.successor.nodeId), []byte(r.Key))) &&r.Key!=""//r.key = "" för att connecta sista nodens successor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters