-
Notifications
You must be signed in to change notification settings - Fork 482
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
162 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,29 @@ | ||
import dotenv from 'dotenv' | ||
import { Queue } from 'bullmq'; | ||
import { Queue, QueueEvents, Worker } from 'bullmq'; | ||
import { RedisConnectionDetails } from '@nostrwatch/utils' | ||
|
||
dotenv.config() | ||
|
||
const Trawler = (qopts) => { | ||
const Trawler = (qopts={}) => { | ||
qopts = { connection: RedisConnectionDetails(), ...qopts } | ||
return new Queue('Trawler', qopts) | ||
} | ||
|
||
const Nocapd = (qopts) => { | ||
const Nocapd = (qopts={}) => { | ||
qopts = { connection: RedisConnectionDetails(), ...qopts } | ||
return new Queue('Nocapd', qopts) | ||
} | ||
|
||
const RestApi = (qopts) => { | ||
const RestApi = (qopts={}) => { | ||
qopts = { connection: RedisConnectionDetails(), ...qopts } | ||
return new Queue('Nocapd', qopts) | ||
} | ||
|
||
export { | ||
Trawler, | ||
Nocapd, | ||
RestApi | ||
RestApi, | ||
Queue as BullQueue, | ||
QueueEvents as BullQueueEvents, | ||
Worker as BullWorker, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import DnsAdapterDefault from '@nostrwatch/nocap-dns-adapter-default' | ||
import GeoAdapterDefault from '@nostrwatch/nocap-geo-adapter-default' | ||
import WebsocketAdapterDefault from '@nostrwatch/nocap-relay-adapter-default' | ||
import InfoAdapterDefault from '@nostrwatch/nocap-info-adapter-default' | ||
import RelayAdapterDefault from '@nostrwatch/nocap-relay-adapter-default' | ||
import SslAdapterDefault from '@nostrwatch/nocap-ssl-adapter-default' | ||
import DnsAdapterDefault from '@nostrwatch/nocap-dns-adapter-default' | ||
import GeoAdapterDefault from '@nostrwatch/nocap-geo-adapter-default' | ||
|
||
export default { | ||
WebsocketAdapterDefault, | ||
DnsAdapterDefault, | ||
GeoAdapterDefault, | ||
InfoAdapterDefault, | ||
RelayAdapterDefault, | ||
SslAdapterDefault | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.