From 3b3bdc333f90e061e3bcb4aceda80ab3301b2431 Mon Sep 17 00:00:00 2001 From: ucwong Date: Tue, 16 Apr 2024 00:19:14 +0800 Subject: [PATCH] const scope tiny fix --- eth/filters/api.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/eth/filters/api.go b/eth/filters/api.go index 56a9de1b21..e3de9807ec 100644 --- a/eth/filters/api.go +++ b/eth/filters/api.go @@ -40,11 +40,13 @@ var ( errExceedMaxTopics = errors.New("exceed max topics") ) -// The maximum number of topic criteria allowed, vm.LOG4 - vm.LOG0 -const maxTopics = 4 +const ( + // The maximum number of topic criteria allowed, vm.LOG4 - vm.LOG0 + maxTopics = 4 -// The maximum number of allowed topics within a topic criteria -const maxSubTopics = 1000 + // The maximum number of allowed topics within a topic criteria + maxSubTopics = 1000 +) // filter is a helper struct that holds meta information over the filter type // and associated subscription in the event system.