Skip to content

Commit 300241b

Browse files
authored
Merge pull request #90 from netlify/fix-squash
add mapstructure command to struct
2 parents 22c2184 + 2f6e23b commit 300241b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

messaging/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ type NatsConfig struct {
4242
}
4343

4444
type NatsClientConfig struct {
45-
NatsConfig
46-
Subject string `mapstructure:"command_subject"`
47-
Group string `mapstructure:"command_group"`
45+
NatsConfig `mapstructure:",squash"`
46+
Subject string `mapstructure:"command_subject"`
47+
Group string `mapstructure:"command_group"`
4848

4949
// StartAt will configure where the client should resume the stream:
5050
// - `all`: all the messages available

0 commit comments

Comments
 (0)