Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPFS via node #34

Merged
merged 9 commits into from
Sep 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix: failed by timeout check
aopoltorzhicky committed Sep 15, 2022
commit d74e7c8785171a2cd16cc13a4e193f34b5cff65e
2 changes: 1 addition & 1 deletion cmd/metadata/models/contract_metadata.go
Original file line number Diff line number Diff line change
@@ -119,7 +119,7 @@ func (contracts *Contracts) FailedByTimeout(network string, limit, offset, retry
Where("status = ?", StatusFailed).
Where("network = ?", network).
Where("retry_count = ?", retryCount).
Where("error LIKE '%%deadline%%'").
Where("error LIKE '%%Client.Timeout%%'").
Where("created_at < (extract(epoch from current_timestamp) - ?)", delay).
OrderExpr("updated_at desc")

2 changes: 1 addition & 1 deletion cmd/metadata/models/token_metadata.go
Original file line number Diff line number Diff line change
@@ -138,7 +138,7 @@ func (tokens *Tokens) FailedByTimeout(network string, limit, offset, retryCount,
Where("status = ?", StatusFailed).
Where("network = ?", network).
Where("retry_count = ?", retryCount).
Where("error LIKE '%%deadline%%'").
Where("error LIKE '%%Client.Timeout%%'").
Where("created_at < (extract(epoch from current_timestamp) - ?)", delay).
OrderExpr("updated_at desc")