Skip to content

Commit bc09c95

Browse files
committed
fix: requests cache opts name
1 parent a6ed729 commit bc09c95

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

cmd/p2p/sensor/sensor.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -195,19 +195,19 @@ var SensorCmd = &cobra.Command{
195195
conns := p2p.NewConns()
196196

197197
opts := p2p.EthProtocolOptions{
198-
Context: cmd.Context(),
199-
Database: db,
200-
GenesisHash: common.HexToHash(inputSensorParams.GenesisHash),
201-
RPC: inputSensorParams.RPC,
202-
SensorID: inputSensorParams.SensorID,
203-
NetworkID: inputSensorParams.NetworkID,
204-
Conns: conns,
205-
Head: &head,
206-
HeadMutex: &sync.RWMutex{},
207-
ForkID: forkid.ID{Hash: [4]byte(inputSensorParams.ForkID)},
208-
MsgCounter: msgCounter,
209-
MaxRequests: inputSensorParams.MaxRequests,
210-
RequestCacheTTL: inputSensorParams.RequestsCacheTTL,
198+
Context: cmd.Context(),
199+
Database: db,
200+
GenesisHash: common.HexToHash(inputSensorParams.GenesisHash),
201+
RPC: inputSensorParams.RPC,
202+
SensorID: inputSensorParams.SensorID,
203+
NetworkID: inputSensorParams.NetworkID,
204+
Conns: conns,
205+
Head: &head,
206+
HeadMutex: &sync.RWMutex{},
207+
ForkID: forkid.ID{Hash: [4]byte(inputSensorParams.ForkID)},
208+
MsgCounter: msgCounter,
209+
MaxRequests: inputSensorParams.MaxRequests,
210+
RequestsCacheTTL: inputSensorParams.RequestsCacheTTL,
211211
}
212212

213213
config := ethp2p.Config{

0 commit comments

Comments
 (0)