Skip to content

Commit

Permalink
fix: initialize ApResolver when creating app
Browse files Browse the repository at this point in the history
  • Loading branch information
devgianlu committed Nov 2, 2023
1 parent 6d89ce8 commit 2a61d42
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/daemon/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ func NewApp(cfg *Config) (app *App, err error) {
return nil, err
}

app.resolver = apresolve.NewApResolver()

if len(cfg.DeviceId) == 0 {
deviceIdBytes := make([]byte, 20)
_, _ = rand.Read(deviceIdBytes)
Expand Down

0 comments on commit 2a61d42

Please sign in to comment.