Skip to content

Commit 00335ff

Browse files
committed
Allow a replicates definition in the config to be passed through
1 parent bd8e6cc commit 00335ff

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/replication/knownNodes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ export function* iterateRoutes(options: { routes: (Route | any)[] }) {
243243
}
244244

245245
yield {
246-
replicates: !route.subscriptions, // if there is not a list of subscriptions, then this node is authorized to fully replicate
246+
replicates: route.replicates ?? !route.subscriptions, // if there is not a list of subscriptions, then this node is authorized to fully replicate
247247
url,
248248
subscription: route.subscriptions,
249249
routes: route.routes,

0 commit comments

Comments
 (0)