Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Commit

Permalink
bugfix:modify the words spelling mistakes
Browse files Browse the repository at this point in the history
Signed-off-by: Aresforchina <[email protected]>
  • Loading branch information
Aresforchina committed Dec 12, 2019
1 parent e77febc commit d33ea4c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion pkg/errortypes/supernode_errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ var (

// ErrUnknowError represents the error should not happen
// and the cause of that is unknown.
ErrUnknowError = DfError{codeUnknowError, "unknow error"}
ErrUnknowError = DfError{codeUnknowError, "unknown error"}

// PeerContinue represents the peer should wait.
PeerContinue = DfError{codePeerContinue, "peer continue"}
Expand Down
2 changes: 1 addition & 1 deletion supernode/daemon/mgr/cdn/super_reader.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func readHeader(reader io.Reader, pieceMd5 hash.Hash) (uint32, error) {
return 0, err
}
if n != config.PieceHeadSize {
return 0, fmt.Errorf("unexected head size: %d", n)
return 0, fmt.Errorf("unexpected head size: %d", n)
}

if pieceMd5 != nil {
Expand Down

0 comments on commit d33ea4c

Please sign in to comment.