mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
propagate a ctx all the way from input to output of a route
This commit is contained in:
@@ -30,8 +30,8 @@ func TestRouteCreate(t *testing.T) {
|
||||
|
||||
type MockRouter struct{}
|
||||
|
||||
func (mr *MockRouter) HandleInput(sourceId string, payload any) []route.RouteIOError {
|
||||
return nil
|
||||
func (mr *MockRouter) HandleInput(ctx context.Context, sourceId string, payload any) (bool, []route.RouteIOError) {
|
||||
return false, []route.RouteIOError{}
|
||||
}
|
||||
|
||||
func (mr *MockRouter) HandleOutput(ctx context.Context, destinationId string, payload any) error {
|
||||
|
||||
Reference in New Issue
Block a user