Skip to content

Commit

Permalink
Use type map[string][]string for ProduceMessage headers
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaojeling committed Nov 3, 2023
1 parent b6d277f commit 78c85ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sdks/go/pkg/beam/io/natsio/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func init() {
type ProducerMessage struct {
Subject string
ID string
Headers nats.Header
Headers map[string][]string
Data []byte
}

Expand Down
2 changes: 1 addition & 1 deletion sdks/go/pkg/beam/io/natsio/write_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ func TestWrite(t *testing.T) {
ProducerMessage{
Subject: subject,
ID: "1",
Headers: nats.Header{"key": []string{"val"}},
Headers: map[string][]string{"key": {"val"}},
Data: []byte("msg1"),
},
},
Expand Down

0 comments on commit 78c85ad

Please sign in to comment.