diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-29 10:20:00 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:54 +0800 |
commit | d09c4f37a430b03e42d0ae3324907f040adc1449 (patch) | |
tree | 05f27af84647a2d3296a8d4fec578c11c5a1f87a /dex/downloader | |
parent | 25a0e3a6b67cf646611153599e5b9cde2f2e8435 (diff) | |
download | dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.gz dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.bz2 dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.lz dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.xz dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.zst dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.zip |
Fix lint
Diffstat (limited to 'dex/downloader')
-rw-r--r-- | dex/downloader/downloader.go | 8 | ||||
-rw-r--r-- | dex/downloader/metrics.go | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/dex/downloader/downloader.go b/dex/downloader/downloader.go index 828c7c6bc..07c72262c 100644 --- a/dex/downloader/downloader.go +++ b/dex/downloader/downloader.go @@ -68,10 +68,10 @@ var ( reorgProtThreshold = 48 // Threshold number of recent blocks to disable mini reorg protection reorgProtHeaderDelay = 2 // Number of headers to delay delivering to cover mini reorgs - fsHeaderSafetyNet = 2048 // Number of headers to discard in case a chain violation is detected - fsHeaderForceVerify = 24 // Number of headers to verify before and after the pivot to accept it - fsHeaderContCheck = 3 * time.Second // Time interval to check for header continuations during state download - fsMinFullBlocks = 64 // Number of blocks to retrieve fully even in fast sync + fsHeaderSafetyNet = 2048 // Number of headers to discard in case a chain violation is detected + // fsHeaderForceVerify = 24 // Number of headers to verify before and after the pivot to accept it + fsHeaderContCheck = 3 * time.Second // Time interval to check for header continuations during state download + fsMinFullBlocks = 64 // Number of blocks to retrieve fully even in fast sync ) var ( diff --git a/dex/downloader/metrics.go b/dex/downloader/metrics.go index 395950759..86f3298ad 100644 --- a/dex/downloader/metrics.go +++ b/dex/downloader/metrics.go @@ -28,10 +28,10 @@ var ( headerDropMeter = metrics.NewRegisteredMeter("dex/downloader/headers/drop", nil) headerTimeoutMeter = metrics.NewRegisteredMeter("dex/downloader/headers/timeout", nil) - govStateInMeter = metrics.NewRegisteredMeter("dex/downloader/govStates/in", nil) - govStateReqTimer = metrics.NewRegisteredTimer("dex/downloader/govStates/req", nil) - govStateDropMeter = metrics.NewRegisteredMeter("dex/downloader/govStates/drop", nil) - govStateTimeoutMeter = metrics.NewRegisteredMeter("dex/downloader/govStates/timeout", nil) + govStateInMeter = metrics.NewRegisteredMeter("dex/downloader/govStates/in", nil) + // govStateReqTimer = metrics.NewRegisteredTimer("dex/downloader/govStates/req", nil) + govStateDropMeter = metrics.NewRegisteredMeter("dex/downloader/govStates/drop", nil) + // govStateTimeoutMeter = metrics.NewRegisteredMeter("dex/downloader/govStates/timeout", nil) bodyInMeter = metrics.NewRegisteredMeter("dex/downloader/bodies/in", nil) bodyReqTimer = metrics.NewRegisteredTimer("dex/downloader/bodies/req", nil) |