fix group lag exporter
Some checks failed
build / test (push) Failing after 1m36s
codeql / analyze (go) (push) Failing after 1m37s
build / lint (push) Successful in 9m14s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2024-04-13 02:40:45 +03:00
parent 39177da1d0
commit 1f4cf11afe
3 changed files with 4 additions and 4 deletions

View File

@@ -91,7 +91,7 @@ func (s *subscriber) poll(ctx context.Context) {
ticker.Stop()
return
case <-ticker.C:
dgls, err := ac.Lag(ctx, s.topic)
dgls, err := ac.Lag(ctx, s.opts.Group)
if err != nil || !dgls.Ok() {
continue
}