Skip to content

Commit

Permalink
Use uAtomic for atomic.Bool
Browse files Browse the repository at this point in the history
  • Loading branch information
RobertIndie committed Feb 21, 2024
1 parent 05d5eca commit 5066100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulsar/consumer_impl.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ package pulsar
import (
"context"
"fmt"
uAtomic "go.uber.org/atomic"
"math/rand"
"strconv"
"sync"
"sync/atomic"
"time"

"github.com/apache/pulsar-client-go/pulsar/crypto"
Expand Down Expand Up @@ -714,7 +714,7 @@ func (c *consumer) hasNext() bool {

wg.Add(len(c.consumers))

var hasNext atomic.Bool
var hasNext uAtomic.Bool
for _, pc := range c.consumers {
pc := pc
go func() {
Expand Down

0 comments on commit 5066100

Please sign in to comment.