refactor dummy; flush tmsp reqs

This commit is contained in:
Ethan Buchman
2015-11-27 18:42:00 -05:00
parent e40c4834a8
commit 2de72d26cf
4 changed files with 31 additions and 20 deletions

22
cmd/dummy/main.go Normal file
View File

@ -0,0 +1,22 @@
package main
import (
. "github.com/tendermint/go-common"
"github.com/tendermint/tmsp/example"
"github.com/tendermint/tmsp/server"
)
func main() {
// Start the listener
_, err := server.StartListener("tcp://127.0.0.1:8080", example.NewDummyApplication())
if err != nil {
Exit(err.Error())
}
// Wait forever
TrapSignal(func() {
// Cleanup
})
}