Skip to content

Commit

Permalink
feat: set calculateDigest to false in dfdaemon, because it has bug in…
Browse files Browse the repository at this point in the history
… large files (#3235)

feat: set calculateDigest to false in dfdaemon, because it has bug in downloading large files

Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Apr 25, 2024
1 parent 91b9145 commit 730d0c8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/config/peerhost_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var peerHostConfig = func() *DaemonOption {
IDC: "",
},
Download: DownloadOption{
CalculateDigest: true,
CalculateDigest: false,
PieceDownloadTimeout: 30 * time.Second,
GRPCDialTimeout: 10 * time.Second,
WatchdogTimeout: 30 * time.Second,
Expand Down
2 changes: 1 addition & 1 deletion client/config/peerhost_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ var peerHostConfig = func() *DaemonOption {
IDC: "",
},
Download: DownloadOption{
CalculateDigest: true,
CalculateDigest: false,
PieceDownloadTimeout: 30 * time.Second,
GRPCDialTimeout: 10 * time.Second,
WatchdogTimeout: 30 * time.Second,
Expand Down
2 changes: 1 addition & 1 deletion client/config/peerhost_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ func TestPeerHostOption_Load(t *testing.T) {
},
},
},
CalculateDigest: true,
CalculateDigest: false,
Transport: &TransportOption{
DialTimeout: time.Second,
KeepAlive: time.Second,
Expand Down
2 changes: 1 addition & 1 deletion client/config/testdata/config/daemon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ host:
idc: d7y

download:
calculateDigest: true
calculateDigest: false
defaultPattern: p2p
pieceDownloadTimeout: 30s
totalRateLimit: 1024Mi
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm-charts

0 comments on commit 730d0c8

Please sign in to comment.