Skip to content

Commit

Permalink
metrics; fix collecting flow stats
Browse files Browse the repository at this point in the history
  • Loading branch information
zolug committed Feb 6, 2024
1 parent c489969 commit 7e2669c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/loadbalancer/flow/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,13 @@ type FlowStat interface {
func nfqlbGetFlowStats() ([]FlowStat, error) {
list := []FlowStat{}
nfqlbFlowStats, err := nfqlb.GetFlowStats()
if err != nil {
return nil, fmt.Errorf("failed to get nfqlb flow stats: %w", err)
}
for _, nfqlbFlowStat := range nfqlbFlowStats {
list = append(list, nfqlbFlowStat)
}
return list, fmt.Errorf("failed to get nfqlb flow stats: %w", err)
return list, nil
}

type config struct {
Expand Down

0 comments on commit 7e2669c

Please sign in to comment.