瀏覽代碼

Forgot two ID uppercasings

Co-authored-by: Tulir Asokan <tulir@maunium.net>
Scott Weber 2 年之前
父節點
當前提交
8d4c8afef8
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      config/config.go
  2. 1 1
      main.go

+ 1 - 1
config/config.go

@@ -25,7 +25,7 @@ type Config struct {
 	*bridgeconfig.BaseConfig `yaml:",inline"`
 
 	SegmentKey    string `yaml:"segment_key"`
-	SegmentUserId string `yaml:"segment_user_id"`
+	SegmentUserID string `yaml:"segment_user_id"`
 
 	Metrics struct {
 		Enabled bool   `yaml:"enabled"`

+ 1 - 1
main.go

@@ -93,7 +93,7 @@ func (br *WABridge) Init() {
 
 	Segment.log = br.Log.Sub("Segment")
 	Segment.key = br.Config.SegmentKey
-	Segment.userID = br.Config.SegmentUserId
+	Segment.userID = br.Config.SegmentUserID
 	if Segment.IsEnabled() {
 		Segment.log.Infoln("Segment metrics are enabled")
 		if Segment.userID != "" {