EndBlock also returns ResponseEndBlock

This commit is contained in:
Jae Kwon
2017-01-12 14:50:41 -05:00
committed by Ethan Buchman
parent 8b76f3dd00
commit f8167872d8
13 changed files with 46 additions and 32 deletions
+2 -1
View File
@@ -17,7 +17,7 @@ func main() {
app := counter.NewCounterApplication(*serialPtr)
// Start the listener
_, err := server.NewServer(*addrPtr, *tmspPtr, app)
srv, err := server.NewServer(*addrPtr, *tmspPtr, app)
if err != nil {
Exit(err.Error())
}
@@ -25,6 +25,7 @@ func main() {
// Wait forever
TrapSignal(func() {
// Cleanup
srv.Stop()
})
}
+2 -1
View File
@@ -25,7 +25,7 @@ func main() {
}
// Start the listener
_, err := server.NewServer(*addrPtr, *tmspPtr, app)
srv, err := server.NewServer(*addrPtr, *tmspPtr, app)
if err != nil {
Exit(err.Error())
}
@@ -33,6 +33,7 @@ func main() {
// Wait forever
TrapSignal(func() {
// Cleanup
srv.Stop()
})
}