Skip to content

Commit 2c14342

Browse files
committed
Merge remote-tracking branch 'origin/develop' into coordinator_proxy
2 parents 14e2633 + efca370 commit 2c14342

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

bridge-history-api/internal/logic/history_logic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,7 +372,7 @@ func (h *HistoryLogic) getCachedTxsInfo(ctx context.Context, cacheKey string, pa
372372
}
373373

374374
if start >= total {
375-
return nil, 0, false, nil
375+
return nil, 0, true, nil
376376
}
377377

378378
values, err := h.redis.ZRevRange(ctx, cacheKey, start, end).Result()

common/database/db.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ func InitDB(config *Config) (*gorm.DB, error) {
5151
}
5252

5353
db, err := gorm.Open(postgres.Open(config.DSN), &gorm.Config{
54-
Logger: &tmpGormLogger,
54+
CreateBatchSize: 1000,
55+
Logger: &tmpGormLogger,
5556
NowFunc: func() time.Time {
5657
// why set time to UTC.
5758
// if now set this, the inserted data time will use local timezone. like 2023-07-18 18:24:00 CST+8

common/version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"runtime/debug"
66
)
77

8-
var tag = "v4.7.10"
8+
var tag = "v4.7.11"
99

1010
var commit = func() string {
1111
if info, ok := debug.ReadBuildInfo(); ok {

0 commit comments

Comments
 (0)