Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 | 1x 1x 1x 18x 18x 18x 18x | import type {Callee} from '../../callee';
import {createRpcCallee, type SampleCtx} from '../../testing/Callee.fixtures';
import type {Procedures} from '../../procedures';
import {BatchDispatcher} from '../BatchDispatcher';
export const createBatchDispatcher = () => {
const ctx: SampleCtx = {ip: '127.0.0.1'};
const callee = createRpcCallee<SampleCtx>() as Callee<SampleCtx, Procedures>;
const dispatcher = new BatchDispatcher<SampleCtx>({callee});
return {callee, dispatcher, ctx};
};
|