Skip to content

Commit

Permalink
fix(plc4go): pass in the correct context (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
hongjinlin committed Oct 11, 2022
1 parent 6f6ce72 commit b6bf718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plc4go/spi/model/DefaultPlcReadRequest.go
Expand Up @@ -115,7 +115,7 @@ func (d *DefaultPlcReadRequest) ExecuteWithContext(ctx context.Context) <-chan m
readRequests := d.readRequestInterceptor.InterceptReadRequest(ctx, d)
// Shortcut for single-request-requests
if len(readRequests) == 1 {
return d.reader.Read(nil, readRequests[0])
return d.reader.Read(ctx, readRequests[0])
}
// Create a sub-result-channel slice
var subResultChannels []<-chan model.PlcReadRequestResult
Expand Down

0 comments on commit b6bf718

Please sign in to comment.