Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesread committed Jun 14, 2024
1 parent e804f58 commit b1e69b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/japella-adaptor-telegram/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ var cfg struct {
func main() {
log.Infof("japella-adaptor-telegram")

cfg.Common = &runtimeconfig.CommonConfig{}

runtimeconfig.LoadConfigCommon(cfg.Common)
// runtimeconfig.LoadConfig("config.telegram.yaml", cfg.Telegram)
runtimeconfig.LoadConfig("config.telegram.yaml", cfg.Telegram)

log.Infof("cfg: %+v", cfg)

Expand Down

0 comments on commit b1e69b4

Please sign in to comment.