1 import { waitJobs } from './jobs'
2 import { ServerInfo } from './servers'
4 async function doubleFollow (server1: ServerInfo, server2: ServerInfo) {
6 server1.followsCommand.follow({ targets: [ server2.url ] }),
7 server2.followsCommand.follow({ targets: [ server1.url ] })
10 // Wait request propagation
11 await waitJobs([ server1, server2 ])
16 // ---------------------------------------------------------------------------