mirror of
https://github.com/livekit/livekit.git
synced 2026-05-14 09:45:19 +00:00
ab7fdeab7c
* add AssignmentHook to AssignJob; propagate websocket write errors - Replace the `url *string` parameter on `Worker.AssignJob` with a middleware-style `AssignmentHook` so callers can intercept the `JobAssignment` send (e.g. to set Url, or to gate hedged attempts so only one assignment is written). - Remove the `sendRequest` helper. Inline `WriteServerMessage` and propagate the error: `AssignJob` returns immediately on a failed availability or assignment write, leaving the job out of `runningJobs`; `TerminateJob` still updates local bookkeeping when the wire write fails but surfaces the write error to the caller. * tidy