mirror of
https://github.com/dariusk/rss-to-activitypub.git
synced 2024-11-26 19:09:19 +02:00
beanstalkd to other host
This commit is contained in:
parent
1a872694fb
commit
eea28e6f12
|
@ -4,6 +4,7 @@ const Jackd = require('jackd');
|
||||||
const beanstalkd = new Jackd();
|
const beanstalkd = new Jackd();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
async function foo() {
|
async function foo() {
|
||||||
|
|
||||||
// get all feeds from DB
|
// get all feeds from DB
|
||||||
|
@ -13,7 +14,7 @@ async function foo() {
|
||||||
|
|
||||||
let count = 0;
|
let count = 0;
|
||||||
|
|
||||||
await beanstalkd.connect()
|
await beanstalkd.connect({beanstalkd,11300 })
|
||||||
|
|
||||||
for (feed of feeds) {
|
for (feed of feeds) {
|
||||||
await beanstalkd.put(feed.feed)
|
await beanstalkd.put(feed.feed)
|
||||||
|
|
|
@ -10,7 +10,7 @@ const db = new Database('data/bot-node.db'),
|
||||||
const Jackd = require('jackd');
|
const Jackd = require('jackd');
|
||||||
const beanstalkd = new Jackd();
|
const beanstalkd = new Jackd();
|
||||||
|
|
||||||
beanstalkd.connect()
|
beanstalkd.connect({beanstalkd,11300 })
|
||||||
|
|
||||||
async function foo() {
|
async function foo() {
|
||||||
while (true) {
|
while (true) {
|
||||||
|
|
Loading…
Reference in New Issue