Skip to content

Commit c5e88e6

Browse files
authored
Change embeeded DefaultSyncFileLimit to 500
We are also setting this as a default on BitBalloon, but in case anyone uses this elsewhere, they will get the correct default.
1 parent ed4efa3 commit c5e88e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

go/porcelain/netlify_client.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"github.com/netlify/open-api/go/porcelain/http"
99
)
1010

11-
const DefaultSyncFileLimit = 7000
11+
const DefaultSyncFileLimit = 500
1212
const DefaultConcurrentUploadLimit = 10
1313
const DefaultRetryAttempts = 3
1414

@@ -55,7 +55,9 @@ type Netlify struct {
5555
}
5656

5757
func (n *Netlify) SetSyncFileLimit(limit int) {
58-
n.syncFileLimit = limit
58+
if limit > 0 {
59+
n.syncFileLimit = limit
60+
}
5961
}
6062

6163
func (n *Netlify) SetConcurrentUploadLimit(limit int) {

0 commit comments

Comments
 (0)