Skip to content

Commit

Permalink
fix: usage of architecture-dependent int type in the scheduler (#2619)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Aug 9, 2023
1 parent e621fce commit 094b79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scheduler/service/service_v1.go
Original file line number Diff line number Diff line change
Expand Up @@ -1226,7 +1226,7 @@ func (v *V1) handlePeerSuccess(ctx context.Context, peer *resource.Peer) {
return
}

if len(data) != int(peer.Task.ContentLength.Load()) {
if int64(len(data)) != peer.Task.ContentLength.Load() {
peer.Log.Errorf("download tiny task length of data is %d, task content length is %d", len(data), peer.Task.ContentLength.Load())
return
}
Expand Down

0 comments on commit 094b79d

Please sign in to comment.