Skip to content

Commit

Permalink
use random session name for rmb peer
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioBassem committed Sep 29, 2024
1 parent f901712 commit c51e12b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion griddriver/rmb.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"math/rand"
"time"

substrate "github.com/threefoldtech/tfchain/clients/tfchain-client-go"
Expand Down Expand Up @@ -33,7 +34,7 @@ func rmbDecorator(action func(c *cli.Context, client *peer.RpcClient) (interface
mnemonics,
subManager,
peer.WithRelay(relay_url),
peer.WithSession("tfgrid-vclient"),
peer.WithSession(fmt.Sprintf("tfgrid-vclient-%d", rand.Int63())),
)
if err != nil {
return fmt.Errorf("failed to create peer client: %w", err)
Expand Down

0 comments on commit c51e12b

Please sign in to comment.