Skip to content

Commit ea51d81

Browse files
committed
Use given context when reading ext. module events
Signed-off-by: Matej Pavlovic <[email protected]>
1 parent 18b6953 commit ea51d81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/externalmodule/connection.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ func receiveResponse(ctx context.Context, conn *websocket.Conn) (*stdtypes.Event
134134
resultEvents := stdtypes.EmptyList()
135135
for i := 0; i < command.NumEvents; i++ {
136136

137-
msgType, msgData, err := conn.Read(context.Background())
137+
msgType, msgData, err := conn.Read(ctx)
138138
if err != nil {
139139
return nil, fmt.Errorf("could not read response data: %w", err)
140140
}

0 commit comments

Comments
 (0)