Browse Source

refactor dummy; flush tmsp reqs

pull/1780/head
Ethan Buchman 9 years ago
parent
commit
2de72d26cf
4 changed files with 31 additions and 20 deletions
  1. +22
    -0
      cmd/dummy/main.go
  2. +7
    -0
      cmd/tmsp/cli.go
  3. +1
    -19
      example/dummy.go
  4. +1
    -1
      example/dummy_test.go

+ 22
- 0
cmd/dummy/main.go 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
})
}

cmd/cli.go → cmd/tmsp/cli.go View File


example/main.go → example/dummy.go View File


example/main_test.go → example/dummy_test.go View File


Loading…
Cancel
Save