1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-17 12:35:37 +02:00

リファクタリング syuilo#4587 (#4766)

This commit is contained in:
MeiMei
2019-04-22 03:22:19 +09:00
committed by syuilo
parent acd4b101e1
commit 6b726eea39
8 changed files with 17 additions and 37 deletions

View File

@@ -35,7 +35,7 @@ export default async (user: ILocalUser, url: string, object: any) => {
const addr = await resolveAddr(hostname);
if (!addr) return;
const _ = new Promise((resolve, reject) => {
await new Promise((resolve, reject) => {
const req = request({
protocol,
hostname: addr,
@@ -82,8 +82,6 @@ export default async (user: ILocalUser, url: string, object: any) => {
req.end(data);
});
await _;
//#region Log
publishApLogStream({
direction: 'out',