mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-08-28 10:54:59 +00:00
don't return prematurely from loop. thanks, staticcheck!
This commit is contained in:
parent
c6baf051b8
commit
bd140ee5e1
1 changed files with 4 additions and 1 deletions
|
|
@ -360,7 +360,10 @@ func (cmd *RestoreCommand) restoreShard(ctx context.Context, filename string) er
|
|||
pilosa.GetHTTPClient(cmd.tlsConfig, pilosa.ClientResponseHeaderTimeoutOption(time.Second*3)),
|
||||
pilosa.WithClientRetryPeriod(cmd.RetryPeriod),
|
||||
pilosa.WithSerializer(proto.Serializer{}))
|
||||
return client.RestoreShard(ctx, indexName, shard, bytes.NewBuffer(data))
|
||||
err = client.RestoreShard(ctx, indexName, shard, bytes.NewBuffer(data))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue