You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by lo...@apache.org on 2020/03/18 22:51:14 UTC
[beam] branch lostluck-env-pb-pointer updated: more env pointer
fixes.
This is an automated email from the ASF dual-hosted git repository.
lostluck pushed a commit to branch lostluck-env-pb-pointer
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/lostluck-env-pb-pointer by this push:
new f76b755 more env pointer fixes.
f76b755 is described below
commit f76b7551bab0e516d11f4d74f3c1e00133b61105
Author: Robert Burke <lo...@users.noreply.github.com>
AuthorDate: Wed Mar 18 15:51:02 2020 -0700
more env pointer fixes.
---
sdks/go/pkg/beam/core/runtime/graphx/translate.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sdks/go/pkg/beam/core/runtime/graphx/translate.go b/sdks/go/pkg/beam/core/runtime/graphx/translate.go
index a2a7ae2..e2f4a3a 100644
--- a/sdks/go/pkg/beam/core/runtime/graphx/translate.go
+++ b/sdks/go/pkg/beam/core/runtime/graphx/translate.go
@@ -99,7 +99,7 @@ func CreateEnvironment(ctx context.Context, urn string, extractEnvironmentConfig
// Options for marshalling a graph into a model pipeline.
type Options struct {
// Environment used to run the user code.
- Environment pb.Environment
+ Environment *pb.Environment
}
// Marshal converts a graph to a model pipeline.
@@ -495,7 +495,7 @@ func boolToBounded(bounded bool) pb.IsBounded_Enum {
func (m *marshaller) addDefaultEnv() string {
const id = "go"
if _, exists := m.environments[id]; !exists {
- m.environments[id] = &m.opt.Environment
+ m.environments[id] = m.opt.Environment
}
return id
}