Skip to content

Commit c8dddeb

Browse files
committed
chore(metric): Add default metric
Signed-off-by: Bo-Yi Wu <[email protected]>
1 parent 51bba3f commit c8dddeb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

metric.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ type metric struct {
1313
busyWorkers uint64
1414
}
1515

16-
func newMetric() Metric {
16+
// NewMetric for default metric structure
17+
func NewMetric() Metric {
1718
return &metric{}
1819
}
1920

options.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var (
1212
defaultTimeout = 60 * time.Minute
1313
defaultNewLogger = NewLogger()
1414
defaultFn = func(context.Context, QueuedMessage) error { return nil }
15-
defaultMetric = newMetric()
15+
defaultMetric = NewMetric()
1616
)
1717

1818
// Option for queue system

0 commit comments

Comments
 (0)