Skip to content
Snippets Groups Projects
Commit 77153a35 authored by Xinyuv's avatar Xinyuv
Browse files

rua

parent d6ff1d74
No related branches found
No related tags found
No related merge requests found
......@@ -384,7 +384,7 @@ func runSpout() {
child := childrenBolts[rand.Intn(len(childrenBolts))]
data := Data{ID: child.ID, Tuple: tuple}
childServ := child.ServNum
fmt.Printf("Send data to bolt %v\n", child.ID)
// fmt.Printf("Send data to bolt %v\n", child.ID)
// fmt.Println(data)
// fmt.Println("Print children")
// fmt.Println(childrenBolts)
......@@ -438,7 +438,7 @@ func handleWorkerConnection(conn net.Conn) {
conn.Write([]byte("Ack"))
// TODO: Process data
fmt.Println(*data)
// fmt.Println(*data)
saveData(data.Tuple)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment