From 9c21c0b172c8b0035c6e36fc10afe29c391b50f0 Mon Sep 17 00:00:00 2001 From: Peter Kieltyka Date: Wed, 13 Sep 2023 20:53:27 -0400 Subject: [PATCH] comment --- ethmonitor/ethmonitor.go | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/ethmonitor/ethmonitor.go b/ethmonitor/ethmonitor.go index 48807c4c..6d1100a4 100644 --- a/ethmonitor/ethmonitor.go +++ b/ethmonitor/ethmonitor.go @@ -42,12 +42,6 @@ type Options struct { // Logger used by ethmonitor to log warnings and debug info Logger logger.Logger - // CacheBackend to use for caching block data - CacheBackend cachestore.Backend - - // CacheExpiry is how long to keep each record in cache - CacheExpiry time.Duration - // PollingInterval to query the chain for new blocks PollingInterval time.Duration @@ -82,6 +76,14 @@ type Options struct { // LogTopics will filter only specific log topics to include. LogTopics []common.Hash + // CacheBackend to use for caching block data + // NOTE: do not use this unless you know what you're doing. In most cases + // leave this nil. + CacheBackend cachestore.Backend + + // CacheExpiry is how long to keep each record in cache + CacheExpiry time.Duration + // DebugLogging toggle DebugLogging bool }