summaryrefslogtreecommitdiff
path: root/packages/backend/src/queue/processors/inbox.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-02-06 00:13:52 +0900
committerGitHub <noreply@github.com>2022-02-06 00:13:52 +0900
commitc1b264e4e9686804e1b8ea17ba39753c41bd205b (patch)
tree041e794b683cf986f98fcc04a3d5a50a8dcb7554 /packages/backend/src/queue/processors/inbox.ts
parentenhance(client): improve chart rendering (diff)
downloadsharkey-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/inbox.ts')
-rw-r--r--packages/backend/src/queue/processors/inbox.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/backend/src/queue/processors/inbox.ts b/packages/backend/src/queue/processors/inbox.ts
index 82a0de9663..c189256c33 100644
--- a/packages/backend/src/queue/processors/inbox.ts
+++ b/packages/backend/src/queue/processors/inbox.ts
@@ -5,7 +5,7 @@ import perform from '@/remote/activitypub/perform';
import Logger from '@/services/logger';
import { registerOrFetchInstanceDoc } from '@/services/register-or-fetch-instance-doc';
import { Instances } from '@/models/index';
-import { instanceChart } from '@/services/chart/index';
+import { apRequestChart, federationChart, instanceChart } from '@/services/chart/index';
import { fetchMeta } from '@/misc/fetch-meta';
import { toPuny, extractDbHost } from '@/misc/convert-host';
import { getApId } from '@/remote/activitypub/type';
@@ -143,6 +143,8 @@ export default async (job: Bull.Job<InboxJobData>): Promise<string> => {
fetchInstanceMetadata(i);
instanceChart.requestReceived(i.host);
+ apRequestChart.inbox();
+ federationChart.inbox(i.host);
});
// アクティビティを処理