blob: c23cebd81a697322ad9a02c39f86dbd23f02be10 (
plain) (
tree)
|
|
import { waitJobs } from './jobs'
import { ServerInfo } from './servers'
async function doubleFollow (server1: ServerInfo, server2: ServerInfo) {
await Promise.all([
server1.followsCommand.follow({ targets: [ server2.url ] }),
server2.followsCommand.follow({ targets: [ server1.url ] })
])
// Wait request propagation
await waitJobs([ server1, server2 ])
return true
}
// ---------------------------------------------------------------------------
export {
doubleFollow
}
|