cmd/satellite: limit time spent restoring trash from a node
okay to do now that https://review.dev.storj.io/c/storj/storj/+/7882 is widely deployed Change-Id: I26c9a982b3999186e7c34a30515d151bf18a8648
This commit is contained in:
parent
cbbd5ab1ef
commit
f3c5cd9df2
@ -882,6 +882,9 @@ func cmdRestoreTrash(cmd *cobra.Command, args []string) error {
|
||||
undelete := func(node *overlay.SelectedNode) {
|
||||
log.Info("starting restore trash", zap.String("Node ID", node.ID.String()))
|
||||
|
||||
ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
|
||||
defer cancel()
|
||||
|
||||
conn, err := dialer.DialNodeURL(ctx, storj.NodeURL{
|
||||
ID: node.ID,
|
||||
Address: node.Address.Address,
|
||||
|
Loading…
Reference in New Issue
Block a user