parent
b91b431ec6
commit
bf5ff90e5b
|
@ -1,6 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
|
import "log"
|
||||||
import "net"
|
import "net"
|
||||||
import "os"
|
import "os"
|
||||||
import "io"
|
import "io"
|
||||||
|
@ -12,6 +13,7 @@ import pb "git.wit.com/jcarr/witProtobuf"
|
||||||
func processEvents(mychannel chan *pb.Event) {
|
func processEvents(mychannel chan *pb.Event) {
|
||||||
for {
|
for {
|
||||||
message := <-mychannel
|
message := <-mychannel
|
||||||
|
log.Println("processEvents() on channel recieved a message")
|
||||||
ReadReceivedData(message)
|
ReadReceivedData(message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue