( db: Database, remote: SyncRPC, backend?: string, )
| 67 | // cursor is read and written per backend so concurrent backends keep |
| 68 | // independent resume points. |
| 69 | export async function pullOnce( |
| 70 | db: Database, |
| 71 | remote: SyncRPC, |
| 72 | backend?: string, |
| 73 | ): Promise<ApplyResult> { |
| 74 | // Delegate to the inner implementation with retried=false. See |
| 75 | // pullOnceImpl for the fetchChanges round trip, invariant check, |
| 76 | // reset-and-retry path, and batched apply loop. |
| 77 | return pullOnceImpl(db, remote, backend, false); |
| 78 | } |
| 79 | |
| 80 | // Inner pullOnce that knows whether it is already a retry. The |
| 81 | // outer pullOnce always enters with retried=false; on a watermark |
no test coverage detected