File tree 1 file changed +2
-6
lines changed
1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -955,11 +955,7 @@ func (r *spokesReceivePack) isFsckConfigEnabled() bool {
955
955
}
956
956
957
957
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 () || shouldSkipPushLimit () {
958
+ if skipPushLimit () {
963
959
return 80 * 1024 * 1024 * 1024 , nil /* 80 GB */
964
960
}
965
961
@@ -1238,7 +1234,7 @@ func isImporting() bool {
1238
1234
return sockstat .GetBool ("is_importing" )
1239
1235
}
1240
1236
1241
- func shouldSkipPushLimit () bool {
1237
+ func skipPushLimit () bool {
1242
1238
return sockstat .GetBool ("import_skip_push_limit" )
1243
1239
}
1244
1240
You can’t perform that action at this time.
0 commit comments