Skip to content

Commit

Permalink
chunk/store: use volume default upload/download limit for Java SDK (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
SandyXSD authored May 11, 2023
1 parent 316b71d commit 76e2de5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions sdk/java/libjfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,12 @@ func jfs_init(cname, jsonConf, user, group, superuser, supergroup *C.char) uintp
BufferSize: jConf.MemorySize << 20,
Readahead: jConf.Readahead << 20,
}
if chunkConf.UploadLimit == 0 {
chunkConf.UploadLimit = format.UploadLimit * 1e6 / 8
}
if chunkConf.DownloadLimit == 0 {
chunkConf.DownloadLimit = format.DownloadLimit * 1e6 / 8
}
chunkConf.SelfCheck(format.UUID)
store := chunk.NewCachedStore(blob, chunkConf, registerer)
m.OnMsg(meta.DeleteSlice, func(args ...interface{}) error {
Expand Down

0 comments on commit 76e2de5

Please sign in to comment.