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