From 10e1233f1420e6b244ee1366485e18d58ef981fb Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Wed, 8 Nov 2017 17:29:15 -0500 Subject: [PATCH] fix megacheck issues --- example/dummy/dummy_test.go | 6 +++--- example/example_test.go | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/example/dummy/dummy_test.go b/example/dummy/dummy_test.go index 751a2e910..efbc5af77 100644 --- a/example/dummy/dummy_test.go +++ b/example/dummy/dummy_test.go @@ -8,7 +8,7 @@ import ( "github.com/stretchr/testify/require" abcicli "github.com/tendermint/abci/client" - "github.com/tendermint/abci/server" + abciserver "github.com/tendermint/abci/server" "github.com/tendermint/abci/types" "github.com/tendermint/iavl" cmn "github.com/tendermint/tmlibs/common" @@ -210,7 +210,7 @@ func makeSocketClientServer(app types.Application, name string) (abcicli.Client, socket := cmn.Fmt("unix://%s.sock", name) logger := log.TestingLogger() - server := server.NewSocketServer(socket, app) + server := abciserver.NewSocketServer(socket, app) server.SetLogger(logger.With("module", "abci-server")) if _, err := server.Start(); err != nil { return nil, nil, err @@ -233,7 +233,7 @@ func makeGRPCClientServer(app types.Application, name string) (abcicli.Client, c logger := log.TestingLogger() gapp := types.NewGRPCApplication(app) - server := server.NewGRPCServer(socket, gapp) + server := abciserver.NewGRPCServer(socket, gapp) server.SetLogger(logger.With("module", "abci-server")) if _, err := server.Start(); err != nil { return nil, nil, err diff --git a/example/example_test.go b/example/example_test.go index e9505f223..496ed3d3f 100644 --- a/example/example_test.go +++ b/example/example_test.go @@ -13,7 +13,7 @@ import ( abcicli "github.com/tendermint/abci/client" "github.com/tendermint/abci/example/dummy" - "github.com/tendermint/abci/server" + abciserver "github.com/tendermint/abci/server" "github.com/tendermint/abci/types" cmn "github.com/tendermint/tmlibs/common" "github.com/tendermint/tmlibs/log" @@ -38,7 +38,7 @@ func testStream(t *testing.T, app types.Application) { numDeliverTxs := 200000 // Start the listener - server := server.NewSocketServer("unix://test.sock", app) + server := abciserver.NewSocketServer("unix://test.sock", app) server.SetLogger(log.TestingLogger().With("module", "abci-server")) if _, err := server.Start(); err != nil { t.Fatalf("Error starting socket server: %v", err.Error()) @@ -111,7 +111,7 @@ func testGRPCSync(t *testing.T, app *types.GRPCApplication) { numDeliverTxs := 2000 // Start the listener - server := server.NewGRPCServer("unix://test.sock", app) + server := abciserver.NewGRPCServer("unix://test.sock", app) server.SetLogger(log.TestingLogger().With("module", "abci-server")) if _, err := server.Start(); err != nil { t.Fatalf("Error starting GRPC server: %v", err.Error())