mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-23 21:36:37 +00:00
move max connections from config to db
This commit is contained in:
@@ -25,8 +25,8 @@ export const handleNewtPingRequestMessage: MessageHandler = async (context) => {
|
||||
// higher = more desirable
|
||||
|
||||
let weight = 1;
|
||||
const maxConnections = config.getRawConfig().gerbil.max_connections;
|
||||
if (maxConnections !== undefined) {
|
||||
const maxConnections = node.maxConnections;
|
||||
if (maxConnections !== null && maxConnections !== undefined) {
|
||||
const [currentConnections] = await db
|
||||
.select({
|
||||
count: count()
|
||||
|
||||
Reference in New Issue
Block a user