()
| 244 | const executor = startOfflineExecutor(config) |
| 245 | |
| 246 | const waitForLeader = async () => { |
| 247 | // Wait for full initialization including loading pending transactions |
| 248 | await executor.waitForInit() |
| 249 | if (!executor.isOfflineEnabled) { |
| 250 | throw new Error(`Executor did not become leader`) |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | return { |
| 255 | executor, |
nothing calls this directly
no test coverage detected