Skip to content

Commit

Permalink
fix: handle serve err
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettladley committed Oct 23, 2024
1 parent 9884c35 commit d69ee10
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ func New(config Config) (*Agent, error) {
return nil, err
}
}
go func() { _ = a.serve() }()
go func() {
if err := a.serve(); err != nil {
logger.Error("serve error", zap.Error(err))
}
}()
return a, nil
}

Expand Down

0 comments on commit d69ee10

Please sign in to comment.