mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-25 01:14:28 +00:00
Fix benchmark -- needed to flush
This commit is contained in:
+6
-1
@@ -1,6 +1,8 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
|
||||
. "github.com/tendermint/go-common"
|
||||
"github.com/tendermint/tmsp/example/golang"
|
||||
"github.com/tendermint/tmsp/server"
|
||||
@@ -8,8 +10,11 @@ import (
|
||||
|
||||
func main() {
|
||||
|
||||
addrPtr := flag.String("addr", "tcp://0.0.0.0:46658", "Listen address")
|
||||
flag.Parse()
|
||||
|
||||
// Start the listener
|
||||
_, err := server.StartListener("tcp://0.0.0.0:46658", example.NewDummyApplication())
|
||||
_, err := server.StartListener(*addrPtr, example.NewDummyApplication())
|
||||
if err != nil {
|
||||
Exit(err.Error())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user