mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-25 18:21:28 +00:00
Changed helloworld.go to use proper import
This commit is contained in:
parent
bf84fcd908
commit
22aef8ad79
@ -5,9 +5,9 @@ import (
|
||||
"log"
|
||||
"time"
|
||||
|
||||
"github.com/eqemu/server/protobuf/go/eqproto"
|
||||
"github.com/golang/protobuf/proto"
|
||||
"github.com/nats-io/go-nats"
|
||||
"github.com/xackery/rebuildeq/go/eqproto"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -41,8 +41,6 @@ func asyncChannelMessageSubscriber(nc *nats.Conn) {
|
||||
log.Println(message)
|
||||
})
|
||||
log.Println("Waiting on async messages...")
|
||||
time.Sleep(10 * time.Second)
|
||||
log.Println("Timed out after 10 seconds")
|
||||
}
|
||||
|
||||
// syncChannelMessageSubscriber is an example of how to subscribe
|
||||
@ -55,7 +53,7 @@ func syncChannelMessageSubscriber(nc *nats.Conn) {
|
||||
}
|
||||
var m *nats.Msg
|
||||
if m, err = sub.NextMsg(10 * time.Second); err != nil {
|
||||
log.Println("Timed out after 10 seconds", err.Error())
|
||||
log.Println("Timed out after 10 seconds waiting for message", err.Error())
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user