-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Azure adapter #1444
Add Azure adapter #1444
Conversation
block/factory/build.go
Outdated
@@ -5,6 +5,10 @@ import ( | |||
"errors" | |||
"fmt" | |||
|
|||
"github.com/Azure/azure-storage-blob-go/azblob" | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/dd
block/azure/chunkwriting.go
Outdated
} | ||
// write block sizes | ||
sd := strconv.Itoa(int(cp.reader.CopiedSize)) + "\n" | ||
_, err = cp.toSizes.StageBlock(cp.ctx, base64Etag, strings.NewReader(sd), cp.o.AccessConditions.LeaseAccessConditions, nil, cp.o.ClientProvidedKeyOptions) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion:
Use a struct:
type PartInfo struct {
blockIDs []string `json:"block_ids"`
size int `json:"size"`
}
Then, have just one file for all the blockInfos, and read it with one method and not two.
Codecov Report
@@ Coverage Diff @@
## master #1444 +/- ##
==========================================
- Coverage 39.86% 39.05% -0.81%
==========================================
Files 156 159 +3
Lines 12478 12828 +350
==========================================
+ Hits 4974 5010 +36
- Misses 6795 7101 +306
- Partials 709 717 +8
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A partial review looking into the adapter.go now
No description provided.