Skip to content

Commit

Permalink
Reverting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
codemedic committed Jul 14, 2021
1 parent 3fced6f commit 595074a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stompd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func main() {
for {
select {
case sig := <-stopChannel:
log.Println("received signal", sig)
log.Println("received signal:", sig)
break
}
}
Expand All @@ -54,10 +54,10 @@ func main() {

l, err := net.Listen("tcp", *listenAddr)
if err != nil {
log.Fatalln("failed to listen", err.Error())
log.Fatalf("failed to listen: %s", err.Error())
}
defer func() { l.Close() }()

log.Println("listening on ", l.Addr().Network(), l.Addr().String())
log.Println("listening on", l.Addr().Network(), l.Addr().String())
server.Serve(l)
}

0 comments on commit 595074a

Please sign in to comment.