This is an automated email from the ASF dual-hosted git repository.

justxuewei pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git


The following commit(s) were added to refs/heads/main by this push:
     new c9c5a46f3 fix: variable name typo (#2389)
c9c5a46f3 is described below

commit c9c5a46f3f58f1147b6a3ef90c4b30d135e58f5e
Author: Mustafa Ateş Uzun <[email protected]>
AuthorDate: Sat Aug 19 12:39:45 2023 +0300

    fix: variable name typo (#2389)
---
 metrics/api.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/metrics/api.go b/metrics/api.go
index d274dd177..7dbcc7a19 100644
--- a/metrics/api.go
+++ b/metrics/api.go
@@ -198,13 +198,13 @@ type TimeMetric interface {
 
 const (
        defaultBucketNum         = 10
-       defalutTimeWindowSeconds = 120
+       defaultTimeWindowSeconds = 120
 )
 
 // NewTimeMetric init and write all data to registry
 func NewTimeMetric(min, max, avg, sum, last *MetricId, mr MetricRegistry) 
TimeMetric {
        return &DefaultTimeMetric{r: mr, min: min, max: max, avg: avg, sum: 
sum, last: last,
-               agg: aggregate.NewTimeWindowAggregator(defaultBucketNum, 
defalutTimeWindowSeconds)}
+               agg: aggregate.NewTimeWindowAggregator(defaultBucketNum, 
defaultTimeWindowSeconds)}
 }
 
 type DefaultTimeMetric struct {

Reply via email to