Skip to content

Commit

Permalink
remove unused print
Browse files Browse the repository at this point in the history
  • Loading branch information
pysel committed Jan 26, 2024
1 parent 54ad25c commit 2a39ae7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions balancer/balancer.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package balancer
import (
"context"
"crypto/sha256"
"fmt"
"math/big"

db "github.com/pysel/dkvs/leveldb"
Expand Down Expand Up @@ -113,7 +112,6 @@ func (b *Balancer) Get(ctx context.Context, key []byte) (*prototypes.GetResponse
if err != nil {
// remove the partition if it is offline
if s, ok := status.FromError(err); ok {
fmt.Println(s, s.Code(), s.Code() == codes.Unavailable)
if s.Code() == codes.Unavailable {
offlineAddressesErr.Addresses = append(offlineAddressesErr.Addresses, rangeView.addresses[i])
offlineAddressesErr.Errors = append(offlineAddressesErr.Errors, err)
Expand Down

0 comments on commit 2a39ae7

Please sign in to comment.