You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/10/11 14:35:23 UTC

[plc4x] branch develop updated: fix(plc4go): pass in the correct context (#537)

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new b6bf718eb fix(plc4go): pass in the correct context (#537)
b6bf718eb is described below

commit b6bf718eb958fb5c3aa3cc59c8eb210fe4f1dc42
Author: hongjinlin <89...@qq.com>
AuthorDate: Tue Oct 11 22:35:16 2022 +0800

    fix(plc4go): pass in the correct context (#537)
---
 plc4go/spi/model/DefaultPlcReadRequest.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plc4go/spi/model/DefaultPlcReadRequest.go b/plc4go/spi/model/DefaultPlcReadRequest.go
index 14951992b..33916349c 100644
--- a/plc4go/spi/model/DefaultPlcReadRequest.go
+++ b/plc4go/spi/model/DefaultPlcReadRequest.go
@@ -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