Skip to content

Commit cb38a20

Browse files
authored
Merge pull request #67 from bugrakocabay/dev
Dev
2 parents dc769b6 + 25092e8 commit cb38a20

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pkg/queue/kafka/kafka.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ package kafka
22

33
import (
44
"context"
5-
"github.com/bugrakocabay/konsume/pkg/config"
65
"log/slog"
76

7+
"github.com/bugrakocabay/konsume/pkg/config"
8+
89
"github.com/segmentio/kafka-go"
910
)
1011

pkg/requester/requester.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func (r *Requester) SendRequest(m *config.MetricsConfig, timeout time.Duration)
7373
}
7474
defer resp.Body.Close()
7575

76-
if m.Enabled {
76+
if m != nil && m.Enabled {
7777
metrics.HttpRequestsMade.Inc()
7878
if resp.StatusCode >= m.ThresholdStatus {
7979
metrics.HttpRequestsFailed.Inc()

0 commit comments

Comments
 (0)