hubCallerAdapter 把 *nodehub.Hub 适配为 jobs.HubCaller。
| 92 | |
| 93 | // hubCallerAdapter 把 *nodehub.Hub 适配为 jobs.HubCaller。 |
| 94 | type hubCallerAdapter struct { |
| 95 | hub *nodehub.Hub |
| 96 | } |
| 97 | |
| 98 | func (a hubCallerAdapter) Call(ctx context.Context, nodeID, method string, body any) (json.RawMessage, error) { |
| 99 | return a.hub.Call(ctx, nodeID, method, body) |
nothing calls this directly
no outgoing calls
no test coverage detected