Skip to content

Commit 47dc48d

Browse files
committed
wip: dont use is_importing for push limit
1 parent 6a33470 commit 47dc48d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/spokes/spokes.go

+1-5
Original file line numberDiff line numberDiff line change
@@ -955,11 +955,7 @@ func (r *spokesReceivePack) isFsckConfigEnabled() bool {
955955
}
956956

957957
func (r *spokesReceivePack) getMaxInputSize() (int, error) {
958-
// We want to skip the default push limit when the `import_skip_push_limit`
959-
// stat is set only.
960-
// We keep using the `is_import` here for backward compatibility only,
961-
// which should be removed on a subsequent PR.
962-
if isImporting() || skipPushLimit() {
958+
if skipPushLimit() {
963959
return 80 * 1024 * 1024 * 1024, nil /* 80 GB */
964960
}
965961

0 commit comments

Comments
 (0)