Skip to content

Commit

Permalink
Spelling mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
nakulkar-msft committed Mar 16, 2023
1 parent 05d9281 commit 87b7026
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions common/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/Azure/azure-storage-file-go/azfile"
)

/////////////////////////////////////////////////////////////////////////////////////////////////
// ///////////////////////////////////////////////////////////////////////////////////////////////
type URLStringExtension string

func (s URLStringExtension) RedactSecretQueryParamForLogging() string {
Expand All @@ -27,7 +27,7 @@ func (s URLStringExtension) RedactSecretQueryParamForLogging() string {
return URLExtension{*u}.RedactSecretQueryParamForLogging()
}

/////////////////////////////////////////////////////////////////////////////////////////////////
// ///////////////////////////////////////////////////////////////////////////////////////////////
type URLExtension struct {
url.URL
}
Expand Down Expand Up @@ -84,7 +84,7 @@ func RedactSecretQueryParam(rawQuery, queryKeyNeedRedact string) (bool, string)
return sigFound, values.Encode()
}

/////////////////////////////////////////////////////////////////////////////////////////////////
// ///////////////////////////////////////////////////////////////////////////////////////////////
type FileURLPartsExtension struct {
azfile.FileURLParts
}
Expand All @@ -100,7 +100,7 @@ func (parts FileURLPartsExtension) GetServiceURL() url.URL {
return parts.URL()
}

/////////////////////////////////////////////////////////////////////////////////////////////////
// ///////////////////////////////////////////////////////////////////////////////////////////////
type HTTPResponseExtension struct {
*http.Response
}
Expand All @@ -118,7 +118,7 @@ func (r HTTPResponseExtension) IsSuccessStatusCode(successStatusCodes ...int) bo
return false
}

/////////////////////////////////////////////////////////////////////////////////////////////////
// ///////////////////////////////////////////////////////////////////////////////////////////////
type ByteSlice []byte
type ByteSliceExtension struct {
ByteSlice
Expand Down Expand Up @@ -186,8 +186,8 @@ func GenerateFullPathWithQuery(rootPath, childPath, extraQuery string) string {
// same size.
// Block Names of blobs are of format noted below.
// <5B empty placeholder> <16B GUID of AzCopy re-interpreted as string><5B PartNum><5B Index in the jobPart><5B blockNum>
const AZCOPY_BLOCKNAME_LENTGH = 48
const AZCOPY_BLOCKNAME_LENGTH = 48
func GenerateBlockBlobBlockID(blockNamePrefix string, index int32) string {
blockID := []byte(fmt.Sprintf("%s%05d", blockNamePrefix, index))
return base64.StdEncoding.EncodeToString(blockID)
}
}
2 changes: 1 addition & 1 deletion ste/sender-blockBlob.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ func (s *blockBlobSenderBase) buildCommittedBlockMap() {
// 1. We find chunks by a different actor
// 2. Chunk size differs
for _, block := range blockList.UncommittedBlocks {
if len(block.Name) != common.AZCOPY_BLOCKNAME_LENTGH {
if len(block.Name) != common.AZCOPY_BLOCKNAME_LENGTH {
s.jptm.LogAtLevelForCurrentTransfer(pipeline.LogDebug, invalidAzCopyBlockNameMsg)
return
}
Expand Down

0 comments on commit 87b7026

Please sign in to comment.