clean up UnusedImport and Deprecated warnings (#5813)
This commit is contained in:
parent
6328c77778
commit
4fd3177dab
|
@ -2262,8 +2262,7 @@ proc createEth2Node*(rng: ref HmacDrbgContext,
|
|||
info "Adding privileged direct peer", peerId, address
|
||||
res
|
||||
|
||||
hostAddress = tcpEndPoint(
|
||||
ValidIpAddress.init config.listenAddress, config.tcpPort)
|
||||
hostAddress = tcpEndPoint(config.listenAddress, config.tcpPort)
|
||||
announcedAddresses =
|
||||
if extIp.isNone() or extTcpPort.isNone(): @[]
|
||||
else: @[tcpEndPoint(extIp.get(), extTcpPort.get())]
|
||||
|
|
|
@ -6,14 +6,10 @@
|
|||
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
||||
|
||||
import
|
||||
std/parsecsv,
|
||||
stew/[io2, byteutils], chronicles, confutils, snappy,
|
||||
../beacon_chain/spec/datatypes/base,
|
||||
./ncli_common
|
||||
|
||||
from std/os import fileExists
|
||||
from std/strutils import parseBiggestInt, parseBiggestUInt
|
||||
|
||||
type
|
||||
AggregatorConf = object
|
||||
startEpoch {.
|
||||
|
@ -159,6 +155,9 @@ proc advanceEpochs*(aggregator: var ValidatorDbAggregator, epoch: Epoch,
|
|||
|
||||
when isMainModule:
|
||||
import std/streams
|
||||
from std/os import fileExists
|
||||
from std/parsecsv import CsvParser, CsvRow, open, readRow
|
||||
from std/strutils import parseBiggestInt, parseBiggestUInt
|
||||
|
||||
when defined(posix):
|
||||
import system/ansi_c
|
||||
|
|
Loading…
Reference in New Issue