Skip to content

Commit

Permalink
First stab on removing unused code (at least by LL)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamsi committed Mar 11, 2021
1 parent 591d92b commit fd094da
Show file tree
Hide file tree
Showing 22 changed files with 5 additions and 3,194 deletions.
20 changes: 1 addition & 19 deletions abci/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package abcicli

import (
"context"
"fmt"

"sync"

"github.com/lazyledger/lazyledger-core/abci/types"
Expand Down Expand Up @@ -66,24 +66,6 @@ type Client interface {
PreprocessTxsSync(context.Context, types.RequestPreprocessTxs) (*types.ResponsePreprocessTxs, error)
}

//----------------------------------------

// NewClient returns a new ABCI client of the specified transport type.
// It returns an error if the transport is not "socket" or "grpc"
func NewClient(addr, transport string, mustConnect bool) (client Client, err error) {
switch transport {
case "socket":
client = NewSocketClient(addr, mustConnect)
case "grpc":
client = NewGRPCClient(addr, mustConnect)
default:
err = fmt.Errorf("unknown abci transport %s", transport)
}
return
}

//----------------------------------------

type Callback func(*types.Request, *types.Response)

//----------------------------------------
Expand Down
Loading

0 comments on commit fd094da

Please sign in to comment.