diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-02-06 00:13:52 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-06 00:13:52 +0900 |
| commit | c1b264e4e9686804e1b8ea17ba39753c41bd205b (patch) | |
| tree | 041e794b683cf986f98fcc04a3d5a50a8dcb7554 /packages/backend/src/queue/processors/deliver.ts | |
| parent | enhance(client): improve chart rendering (diff) | |
| download | sharkey-c1b264e4e9686804e1b8ea17ba39753c41bd205b.tar.gz sharkey-c1b264e4e9686804e1b8ea17ba39753c41bd205b.tar.bz2 sharkey-c1b264e4e9686804e1b8ea17ba39753c41bd205b.zip | |
Improve chart engine (#8253)
* wip
* wip
* wip
* wip
* wip
* wip
* wip
* Update core.ts
* wip
* wip
* #7361
* delete network chart
* federationChart強化 apRequestChart追加
* tweak
Diffstat (limited to 'packages/backend/src/queue/processors/deliver.ts')
| -rw-r--r-- | packages/backend/src/queue/processors/deliver.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/backend/src/queue/processors/deliver.ts b/packages/backend/src/queue/processors/deliver.ts index 46aeb8cb7e..e29f991307 100644 --- a/packages/backend/src/queue/processors/deliver.ts +++ b/packages/backend/src/queue/processors/deliver.ts @@ -4,7 +4,7 @@ import request from '@/remote/activitypub/request'; import { registerOrFetchInstanceDoc } from '@/services/register-or-fetch-instance-doc'; import Logger from '@/services/logger'; import { Instances } from '@/models/index'; -import { instanceChart } from '@/services/chart/index'; +import { apRequestChart, federationChart, instanceChart } from '@/services/chart/index'; import { fetchInstanceMetadata } from '@/services/fetch-instance-metadata'; import { fetchMeta } from '@/misc/fetch-meta'; import { toPuny } from '@/misc/convert-host'; @@ -61,6 +61,8 @@ export default async (job: Bull.Job<DeliverJobData>) => { fetchInstanceMetadata(i); instanceChart.requestSent(i.host, true); + apRequestChart.deliverSucc(); + federationChart.deliverd(i.host); }); return 'Success'; @@ -74,6 +76,7 @@ export default async (job: Bull.Job<DeliverJobData>) => { }); instanceChart.requestSent(i.host, false); + apRequestChart.deliverFail(); }); if (res instanceof StatusError) { |