mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-04 12:13:57 +00:00
lint
This commit is contained in:
@@ -76,7 +76,7 @@ type Node struct {
|
||||
blockIndexer indexer.BlockIndexer
|
||||
indexerService *txindex.IndexerService
|
||||
prometheusSrv *http.Server
|
||||
pprofSrv *http.Server
|
||||
pprofSrv *http.Server
|
||||
}
|
||||
|
||||
// Option sets a parameter for the node.
|
||||
@@ -393,7 +393,6 @@ func (n *Node) OnStart() error {
|
||||
n.rpcListeners = listeners
|
||||
}
|
||||
|
||||
|
||||
// Start the transport.
|
||||
addr, err := p2p.NewNetAddressString(p2p.IDAddressString(n.nodeKey.ID(), n.config.P2P.ListenAddress))
|
||||
if err != nil {
|
||||
@@ -674,8 +673,8 @@ func (n *Node) startPrometheusServer() *http.Server {
|
||||
// starts a ppro
|
||||
func (n *Node) startPprofServer() *http.Server {
|
||||
srv := &http.Server{
|
||||
Addr: n.config.RPC.PprofListenAddress,
|
||||
Handler: nil,
|
||||
Addr: n.config.RPC.PprofListenAddress,
|
||||
Handler: nil,
|
||||
ReadHeaderTimeout: readHeaderTimeout,
|
||||
}
|
||||
go func() {
|
||||
@@ -820,4 +819,3 @@ func makeNodeInfo(
|
||||
err := nodeInfo.Validate()
|
||||
return nodeInfo, err
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,6 @@ import (
|
||||
_ "github.com/lib/pq" // provide the psql db driver
|
||||
)
|
||||
|
||||
|
||||
// DBContext specifies config information for loading a new DB.
|
||||
type DBContext struct {
|
||||
ID string
|
||||
@@ -123,7 +122,6 @@ type blockSyncReactor interface {
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
|
||||
func initDBs(config *cfg.Config, dbProvider DBProvider) (blockStore *store.BlockStore, stateDB dbm.DB, err error) {
|
||||
var blockStoreDB dbm.DB
|
||||
blockStoreDB, err = dbProvider(&DBContext{"blockstore", config})
|
||||
@@ -592,7 +590,6 @@ func startStateSync(ssR *statesync.Reactor, bcR blockSyncReactor, conR *cs.React
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
var genesisDocKey = []byte("genesisDoc")
|
||||
@@ -711,4 +708,4 @@ func splitAndTrimEmpty(s, sep, cutset string) []string {
|
||||
}
|
||||
}
|
||||
return nonEmptyStrings
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user