Skip to content

Commit

Permalink
fix build issue after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
taylanisikdemir committed Dec 28, 2023
1 parent 4ccb876 commit 911313b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 8 deletions.
3 changes: 1 addition & 2 deletions service/history/queue/processor_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ package queue
import (
"context"
"fmt"
"strconv"
"sync"
"time"

Expand Down Expand Up @@ -95,7 +94,7 @@ func newProcessorBase(
logger log.Logger,
metricsClient metrics.Client,
) *processorBase {
metricsScope := metricsClient.Scope(options.MetricScope).Tagged(metrics.ShardIDTag(strconv.Itoa(shard.GetShardID())))
metricsScope := metricsClient.Scope(options.MetricScope).Tagged(metrics.ShardIDTag(shard.GetShardID()))
return &processorBase{
shard: shard,
taskProcessor: taskProcessor,
Expand Down
3 changes: 1 addition & 2 deletions service/history/queue/timer_queue_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ package queue
import (
"context"
"fmt"
"strconv"
"sync"
"sync/atomic"
"time"
Expand Down Expand Up @@ -433,7 +432,7 @@ func (t *timerQueueProcessor) completeTimer() error {

t.logger.Debugf("Start completing timer task from: %v, to %v", t.ackLevel, newAckLevelTimestamp)
t.metricsClient.Scope(metrics.TimerQueueProcessorScope).
Tagged(metrics.ShardIDTag(strconv.Itoa(t.shard.GetShardID()))).
Tagged(metrics.ShardIDTag(t.shard.GetShardID())).
IncCounter(metrics.TaskBatchCompleteCounter)

for {
Expand Down
3 changes: 1 addition & 2 deletions service/history/queue/timer_queue_processor_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"fmt"
"math"
"math/rand"
"strconv"
"sync"
"sync/atomic"
"time"
Expand Down Expand Up @@ -543,7 +542,7 @@ func (t *timerQueueProcessorBase) notifyNewTimers(timerTasks []persistence.Task)

isActive := t.options.MetricScope == metrics.TimerActiveQueueProcessorScope
minNewTime := timerTasks[0].GetVisibilityTimestamp()
shardIDTag := metrics.ShardIDTag(strconv.Itoa(t.shard.GetShardID()))
shardIDTag := metrics.ShardIDTag(t.shard.GetShardID())
for _, timerTask := range timerTasks {
ts := timerTask.GetVisibilityTimestamp()
if ts.Before(minNewTime) {
Expand Down
3 changes: 1 addition & 2 deletions service/history/queue/transfer_queue_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"errors"
"fmt"
"math"
"strconv"
"sync"
"sync/atomic"
"time"
Expand Down Expand Up @@ -425,7 +424,7 @@ func (t *transferQueueProcessor) completeTransfer() error {
}

t.metricsClient.Scope(metrics.TransferQueueProcessorScope).
Tagged(metrics.ShardIDTag(strconv.Itoa(t.shard.GetShardID()))).
Tagged(metrics.ShardIDTag(t.shard.GetShardID())).
IncCounter(metrics.TaskBatchCompleteCounter)

for {
Expand Down

0 comments on commit 911313b

Please sign in to comment.