Add apiService cachedRequest function, apply to outspends requests
This commit is contained in:
@@ -123,7 +123,7 @@ export class TxBowtieGraphComponent implements OnInit, OnChanges {
|
||||
.pipe(
|
||||
switchMap((txid) => {
|
||||
if (!this.cached) {
|
||||
return this.apiService.getOutspendsBatched$([txid]);
|
||||
return this.apiService.cachedRequest(this.apiService.getOutspendsBatched$, 5000, [txid]);
|
||||
} else {
|
||||
return of(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user