Skip to content

Commit

Permalink
Revert "fix subscriber id"
Browse files Browse the repository at this point in the history
This reverts commit 412437d.
  • Loading branch information
minghsu0107 committed Jan 31, 2023
1 parent 412437d commit e43d965
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
package config

import (
"github.com/ThreeDotsLabs/watermill"
"os"

"github.com/spf13/viper"
)

Expand Down Expand Up @@ -188,7 +189,7 @@ func setDefault() {
viper.SetDefault("chat.grpc.server.port", "4000")
viper.SetDefault("chat.grpc.client.user.endpoint", "localhost:4001")
viper.SetDefault("chat.grpc.client.forwarder.endpoint", "localhost:4002")
viper.SetDefault("chat.subscriber.id", "rc.msg.sub."+watermill.NewShortUUID())
viper.SetDefault("chat.subscriber.id", "rc.msg."+os.Getenv("HOSTNAME"))
viper.SetDefault("chat.message.maxNum", 5000)
viper.SetDefault("chat.message.paginationNum", 5000)
viper.SetDefault("chat.message.maxSizeByte", 4096)
Expand Down

0 comments on commit e43d965

Please sign in to comment.