const scope tiny fix

This commit is contained in:
ucwong 2024-04-16 00:19:14 +08:00
parent ef5ac3fb7a
commit 3b3bdc333f

View file

@ -40,11 +40,13 @@ var (
errExceedMaxTopics = errors.New("exceed max topics") errExceedMaxTopics = errors.New("exceed max topics")
) )
const (
// The maximum number of topic criteria allowed, vm.LOG4 - vm.LOG0 // The maximum number of topic criteria allowed, vm.LOG4 - vm.LOG0
const maxTopics = 4 maxTopics = 4
// The maximum number of allowed topics within a topic criteria // The maximum number of allowed topics within a topic criteria
const maxSubTopics = 1000 maxSubTopics = 1000
)
// filter is a helper struct that holds meta information over the filter type // filter is a helper struct that holds meta information over the filter type
// and associated subscription in the event system. // and associated subscription in the event system.