mirror of
https://github.com/mempool/mempool.git
synced 2024-12-28 17:24:25 +01:00
Fix spam call to /api/v1/mining/pool/{slug}
This commit is contained in:
parent
fb0e7ec240
commit
a20c401c83
@ -56,12 +56,12 @@ export class PoolComponent implements OnInit {
|
|||||||
switchMap((data) => {
|
switchMap((data) => {
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
this.prepareChartOptions(data.hashrates.map(val => [val.timestamp * 1000, val.avgHashrate]));
|
this.prepareChartOptions(data.hashrates.map(val => [val.timestamp * 1000, val.avgHashrate]));
|
||||||
return slug;
|
return [slug];
|
||||||
}),
|
}),
|
||||||
);
|
);
|
||||||
}),
|
}),
|
||||||
switchMap(() => {
|
switchMap((slug) => {
|
||||||
return this.apiService.getPoolStats$(this.slug);
|
return this.apiService.getPoolStats$(slug);
|
||||||
}),
|
}),
|
||||||
map((poolStats) => {
|
map((poolStats) => {
|
||||||
let regexes = '"';
|
let regexes = '"';
|
||||||
|
Loading…
Reference in New Issue
Block a user