You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by vt...@apache.org on 2026/05/04 15:29:22 UTC
(beam) 01/01: Fix passing body
This is an automated email from the ASF dual-hosted git repository.
Amar3tto pushed a commit to branch fix-postcommit-go
in repository https://gitbox.apache.org/repos/asf/beam.git
commit 3b9220bcdb2a6d92edceb1ba5c43ff0e33e6aa82
Author: Vitaly Terentyev <vi...@akvelon.com>
AuthorDate: Mon May 4 16:45:28 2026 +0400
Fix passing body
---
sdks/go/pkg/beam/io/fhirio/common.go | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sdks/go/pkg/beam/io/fhirio/common.go b/sdks/go/pkg/beam/io/fhirio/common.go
index 504e65270d5..da212c482a8 100644
--- a/sdks/go/pkg/beam/io/fhirio/common.go
+++ b/sdks/go/pkg/beam/io/fhirio/common.go
@@ -30,7 +30,6 @@ import (
"github.com/apache/beam/sdks/v2/go/pkg/beam/core"
"github.com/apache/beam/sdks/v2/go/pkg/beam/internal/errors"
"google.golang.org/api/googleapi"
- "google.golang.org/api/healthcare/v1"
"google.golang.org/api/option"
)
@@ -127,12 +126,13 @@ func (c *fhirStoreClientImpl) search(storePath, resourceType string, queries map
queryParams = append(queryParams, googleapi.QueryParameter(pageTokenParameterKey, pageToken))
}
- // Pass nil as the body because search parameters are passed via queryParams,
+ // Pass new reader as the body because search parameters are passed via queryParams,
// and the new API expects an io.Reader instead of a specific struct.
+ body := strings.NewReader("")
if resourceType == "" {
- return c.fhirService().Search(storePath, nil).Do(queryParams...)
+ return c.fhirService().Search(storePath, body).Do(queryParams...)
}
- return c.fhirService().SearchType(storePath, resourceType, nil).Do(queryParams...)
+ return c.fhirService().SearchType(storePath, resourceType, body).Do(queryParams...)
}
func (c *fhirStoreClientImpl) deidentify(srcStorePath, dstStorePath string, deidConfig *healthcare.DeidentifyConfig) (operationResults, error) {