Skip to content

Commit

Permalink
dont change published to timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
jiguantong committed Oct 9, 2024
1 parent be2306b commit 4afb07f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions aggregator/src/abstract/aggregator.abstract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,9 +463,11 @@ export abstract class Aggregator extends ContractBase {

// Update timeout status if necessary.
if (BigInt(_response.started_at) + BigInt(this.timeout) < near.blockTimestamp()) {
_response.status = RequestStatus[RequestStatus.TIMEOUT];
new TimeoutEvent(_response).emit();
this.response_lookup.set(request_id, _response);
if (_response.status == RequestStatus[RequestStatus.AGGREGATED]) {
_response.status = RequestStatus[RequestStatus.TIMEOUT];
new TimeoutEvent(_response).emit();
this.response_lookup.set(request_id, _response);
}
return;
}

Expand Down

0 comments on commit 4afb07f

Please sign in to comment.