Skip to content

Commit

Permalink
Merge pull request #19 from gobicycle/develop
Browse files Browse the repository at this point in the history
timeout changed
  • Loading branch information
gobicycle authored Aug 28, 2024
2 parents 6492b5d + 51e24b2 commit e187ba7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ var (
ExternalMessageLifetime = 50 * time.Second

ExternalWithdrawalPeriod = 80 * time.Second // must be ExternalWithdrawalPeriod > ExternalMessageLifetime and some time for balance update
InternalWithdrawalPeriod = 30 * time.Second
InternalWithdrawalPeriod = 80 * time.Second
ExpirationProcessorPeriod = 5 * time.Second

AllowableBlockchainLagging = 40 * time.Second // TODO: use env var
Expand Down
2 changes: 1 addition & 1 deletion core/withdrawal_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ func (p *WithdrawalsProcessor) startInternalTonWithdrawalsProcessor() {
log.Infof("Internal TON withdrawal processor stopped")
break
}
ctx, cancel := context.WithTimeout(context.Background(), time.Second*25) // must be < InternalWithdrawalPeriod
ctx, cancel := context.WithTimeout(context.Background(), time.Second*120) // TODO: split context
serviceTasks, err := p.db.GetServiceDepositWithdrawalTasks(ctx, 5)
if err != nil {
log.Fatalf("get service withdrawal tasks error: %v", err)
Expand Down

0 comments on commit e187ba7

Please sign in to comment.