Skip to content

Commit d2b7a28

Browse files
committed
fix: mem use
1 parent 1809862 commit d2b7a28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

backend/pkd/gasstation/gsbaserepo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ func sendNotifications(gasStationIDToGasPriceMap *map[string]gsmodel.GasPrice) {
305305
}
306306

307307
func createInChunks(ids *[]string, chunkedSelects bool) [][]string {
308-
chunkSize := 10000
308+
chunkSize := 1000
309309
if chunkedSelects {
310-
chunkSize = 999
310+
chunkSize = 399
311311
}
312312
chuncks := chunkSlice(*ids, chunkSize)
313313
if len(chuncks) > 1 {

0 commit comments

Comments
 (0)