summaryrefslogtreecommitdiff
path: root/events/eventsbus.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-12-01 18:35:28 +0300
committerValery Piashchynski <[email protected]>2021-12-01 18:35:28 +0300
commit005bce86625b8fffdb3657103ee5589cbb6eed87 (patch)
tree15adef89d99954a71f5c45f8748ed7e66e57d7c4 /events/eventsbus.go
parent859a9f696f732fa58dd49427a936fd0fecc0bc7d (diff)
improve codecov
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'events/eventsbus.go')
-rw-r--r--events/eventsbus.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/events/eventsbus.go b/events/eventsbus.go
index cd0dca71..a2a2c859 100644
--- a/events/eventsbus.go
+++ b/events/eventsbus.go
@@ -130,7 +130,7 @@ func (eb *eventsBus) subscribe(subID string, pattern string, ch chan<- Event) er
return nil
}
- subArr := make([]*sub, 0, 5)
+ subArr := make([]*sub, 0, 1)
subArr = append(subArr, &sub{
pattern: pattern,
w: w,