Skip to content

Commit

Permalink
🎨 Update local cloud concurrent limit #11
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 30, 2024
1 parent c56b677 commit 228bf12
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cloud/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ func (local *Local) GetConcurrentReqs() (ret int) {
if ret < 1 {
ret = 16
}
if ret > 1024 {
ret = 1024
if ret > 32 {
ret = 32
}
return
}
Expand All @@ -304,7 +304,6 @@ func (local *Local) GetAvailableSize() int64 {
if err != nil {
return math.MaxInt64
}

return int64(usage.Free)
}

Expand Down Expand Up @@ -380,7 +379,6 @@ func (local *Local) listRepoRefs(refPrefix string) (refs []*Ref, err error) {

func (local *Local) repoIndex(id string) (index *entity.Index, err error) {
indexFilePath := path.Join(local.getCurrentRepoDirPath(), "indexes", id)

indexFileInfo, err := os.Stat(indexFilePath)
if err != nil {
return
Expand All @@ -404,7 +402,6 @@ func (local *Local) repoIndex(id string) (index *entity.Index, err error) {
if err != nil {
return
}

return
}

Expand Down

0 comments on commit 228bf12

Please sign in to comment.