Retry HTTP requests

This commit is contained in:
Akihiko Odaki 2018-04-04 22:45:55 +09:00
parent 86b1345c17
commit d7c13b975f
24 changed files with 145 additions and 93 deletions

View file

@ -8,7 +8,7 @@ import User, { isLocalUser } from '../models/user';
import stream, { publishChannelStream } from '../publishers/stream';
import notify from '../publishers/notify';
import pushSw from '../publishers/push-sw';
import queue from '../queue';
import { createHttp } from '../queue';
import watch from './watch';
export default async (user, mentions, post) => {
@ -84,7 +84,7 @@ export default async (user, mentions, post) => {
}
return new Promise((resolve, reject) => {
queue.create('http', {
createHttp({
type: 'deliverPost',
fromId: user._id,
toId: following.followerId,