Commit 139390c
authored
feat: compute chunk wise checksum for bidi_writes (#1675)
feat: compute chunk wise checksum for bidi_writes and send it via
BidiWriteObjectRequest
As a part of this change, also did a small refactoring
* Moved the precondition check to __utils.py_ file1 parent d6b8f55 commit 139390cCopy full SHA for 139390c
File tree
Expand file treeCollapse file tree
5 files changed
+74
-18
lines changedOpen diff view settings
Filter options
- google/cloud/storage/_experimental/asyncio
- tests/unit/asyncio
Expand file treeCollapse file tree
5 files changed
+74
-18
lines changedOpen diff view settings
Collapse file
google/cloud/storage/_experimental/asyncio/_utils.py
Copy file name to clipboard+34Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
Collapse file
google/cloud/storage/_experimental/asyncio/async_appendable_object_writer.py
Copy file name to clipboardExpand all lines: google/cloud/storage/_experimental/asyncio/async_appendable_object_writer.py+8-1Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
22 | 22 | |
23 | 23 | |
24 | 24 | |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
25 | 29 | |
26 | 30 | |
27 | 31 | |
| ||
100 | 104 | |
101 | 105 | |
102 | 106 | |
| 107 | + |
103 | 108 | |
104 | 109 | |
105 | 110 | |
| ||
191 | 196 | |
192 | 197 | |
193 | 198 | |
| 199 | + |
194 | 200 | |
195 | 201 | |
196 | 202 | |
197 | 203 | |
198 | | - |
| 204 | + |
| 205 | + |
199 | 206 | |
200 | 207 | |
201 | 208 | |
|
Collapse file
google/cloud/storage/_experimental/asyncio/async_multi_range_downloader.py
Copy file name to clipboardExpand all lines: google/cloud/storage/_experimental/asyncio/async_multi_range_downloader.py+4-12Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
14 | 14 | |
15 | 15 | |
16 | 16 | |
17 | | - |
18 | | - |
19 | | - |
20 | | - |
21 | 17 | |
22 | 18 | |
| 19 | + |
| 20 | + |
| 21 | + |
23 | 22 | |
24 | 23 | |
25 | 24 | |
| ||
160 | 159 | |
161 | 160 | |
162 | 161 | |
163 | | - |
164 | | - |
165 | | - |
166 | | - |
167 | | - |
168 | | - |
169 | | - |
170 | | - |
| 162 | + |
171 | 163 | |
172 | 164 | |
173 | 165 | |
|
Collapse file
tests/unit/asyncio/test_async_appendable_object_writer.py
Copy file name to clipboardExpand all lines: tests/unit/asyncio/test_async_appendable_object_writer.py+26-1Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
| 18 | + |
| 19 | + |
| 20 | + |
18 | 21 | |
19 | 22 | |
20 | 23 | |
| ||
85 | 88 | |
86 | 89 | |
87 | 90 | |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
88 | 108 | |
89 | 109 | |
90 | 110 | |
| ||
434 | 454 | |
435 | 455 | |
436 | 456 | |
437 | | - |
| 457 | + |
| 458 | + |
| 459 | + |
438 | 460 | |
439 | 461 | |
440 | 462 | |
| 463 | + |
| 464 | + |
| 465 | + |
441 | 466 | |
442 | 467 | |
443 | 468 | |
|
Collapse file
tests/unit/asyncio/test_async_multi_range_downloader.py
Copy file name to clipboardExpand all lines: tests/unit/asyncio/test_async_multi_range_downloader.py+2-4Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
349 | 349 | |
350 | 350 | |
351 | 351 | |
352 | | - |
353 | | - |
354 | | - |
| 352 | + |
355 | 353 | |
356 | 354 | |
357 | 355 | |
| ||
360 | 358 | |
361 | 359 | |
362 | 360 | |
363 | | - |
| 361 | + |
364 | 362 | |
365 | 363 | |
366 | 364 | |
|
0 commit comments