Skip to content

Commit 4fd3177

Browse files
authored
clean up UnusedImport and Deprecated warnings (#5813)
1 parent 6328c77 commit 4fd3177

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

beacon_chain/networking/eth2_network.nim

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2262,8 +2262,7 @@ proc createEth2Node*(rng: ref HmacDrbgContext,
22622262
info "Adding privileged direct peer", peerId, address
22632263
res
22642264

2265-
hostAddress = tcpEndPoint(
2266-
ValidIpAddress.init config.listenAddress, config.tcpPort)
2265+
hostAddress = tcpEndPoint(config.listenAddress, config.tcpPort)
22672266
announcedAddresses =
22682267
if extIp.isNone() or extTcpPort.isNone(): @[]
22692268
else: @[tcpEndPoint(extIp.get(), extTcpPort.get())]

ncli/validator_db_aggregator.nim

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,10 @@
66
# at your option. This file may not be copied, modified, or distributed except according to those terms.
77

88
import
9-
std/parsecsv,
109
stew/[io2, byteutils], chronicles, confutils, snappy,
1110
../beacon_chain/spec/datatypes/base,
1211
./ncli_common
1312

14-
from std/os import fileExists
15-
from std/strutils import parseBiggestInt, parseBiggestUInt
16-
1713
type
1814
AggregatorConf = object
1915
startEpoch {.
@@ -159,6 +155,9 @@ proc advanceEpochs*(aggregator: var ValidatorDbAggregator, epoch: Epoch,
159155

160156
when isMainModule:
161157
import std/streams
158+
from std/os import fileExists
159+
from std/parsecsv import CsvParser, CsvRow, open, readRow
160+
from std/strutils import parseBiggestInt, parseBiggestUInt
162161

163162
when defined(posix):
164163
import system/ansi_c

0 commit comments

Comments
 (0)