Skip to content

Commit

Permalink
change err to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe committed Mar 29, 2024
1 parent 5753a4d commit 6d0d4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/pkg/dht/dht.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (d *DHT) Put(ctx context.Context, request bep44.Put) (string, error) {

// Check if there are any nodes in the DHT
if len(d.Server.Nodes()) == 0 {
return "", errutil.LoggingNewError("no nodes available in the DHT")
logrus.Warn("no nodes available in the DHT for publishing")
}

t, err := getput.Put(ctx, request.Target(), d.Server, nil, func(int64) bep44.Put {
Expand Down

0 comments on commit 6d0d4cc

Please sign in to comment.