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 8780981
Show file tree
Hide file tree
Showing 23 changed files with 5 additions and 3,259 deletions.
12 changes: 0 additions & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -115,18 +115,6 @@ proto-check-breaking-ci:
@$(DOCKER_BUF) check breaking --against-input $(HTTPS_GIT)#branch=master
.PHONY: proto-check-breaking-ci

###############################################################################
### Build ABCI ###
###############################################################################

build_abci:
@go build -mod=readonly -i ./abci/cmd/...
.PHONY: build_abci

install_abci:
@go install -mod=readonly ./abci/cmd/...
.PHONY: install_abci

###############################################################################
### Distribution ###
###############################################################################
Expand Down
25 changes: 1 addition & 24 deletions abci/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@ package abcicli

import (
"context"
"fmt"

"sync"

"github.com/lazyledger/lazyledger-core/abci/types"
"github.com/lazyledger/lazyledger-core/libs/service"
tmsync "github.com/lazyledger/lazyledger-core/libs/sync"
)

const (
dialRetryIntervalSeconds = 3
echoRetryIntervalSeconds = 1
)

//go:generate mockery --case underscore --name Client

// Client defines an interface for an ABCI client.
Expand Down Expand Up @@ -66,24 +61,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 8780981

Please sign in to comment.