From e5199a0f6ec9e16b0f20aa6e5fad52d6c4455915 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 20 Dec 2017 12:41:51 +0100 Subject: [PATCH] Fix GoDoc to match actual events-limit Commit 59d45c384a2de7bca73296ce1471646db14cb0c8 changed the `eventsLimit` from 64 to 256, but did not update the GoDoc accordingly. This patch updates the GoDoc for `Subscribe` and `SubscribeTopic` to match the actual limit. Signed-off-by: Sebastiaan van Stijn Upstream-commit: fb3935022dbc160fc1531fa43f0ca2db69184800 Component: engine --- components/engine/daemon/events/events.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/engine/daemon/events/events.go b/components/engine/daemon/events/events.go index d1529e1cea..6a4990fecf 100644 --- a/components/engine/daemon/events/events.go +++ b/components/engine/daemon/events/events.go @@ -28,7 +28,7 @@ func New() *Events { } } -// Subscribe adds new listener to events, returns slice of 64 stored +// Subscribe adds new listener to events, returns slice of 256 stored // last events, a channel in which you can expect new events (in form // of interface{}, so you need type assertion), and a function to call // to stop the stream of events. @@ -46,7 +46,7 @@ func (e *Events) Subscribe() ([]eventtypes.Message, chan interface{}, func()) { return current, l, cancel } -// SubscribeTopic adds new listener to events, returns slice of 64 stored +// SubscribeTopic adds new listener to events, returns slice of 256 stored // last events, a channel in which you can expect new events (in form // of interface{}, so you need type assertion). func (e *Events) SubscribeTopic(since, until time.Time, ef *Filter) ([]eventtypes.Message, chan interface{}) {