Добавлена возможность зарегистрировать локальный снапшот
This commit is contained in:
@@ -154,7 +154,11 @@ func (c *Client) DownloadSnapshotDiff(ctx context.Context, snapshotID, localPare
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to open file %s: %w", targetPath, err)
|
||||
}
|
||||
defer file.Close()
|
||||
defer func() {
|
||||
if err := file.Close(); err != nil {
|
||||
fmt.Printf("failed to close file: %v", err)
|
||||
}
|
||||
}()
|
||||
|
||||
for {
|
||||
resp, err := stream.Recv()
|
||||
|
||||
Reference in New Issue
Block a user