Skip to content

Commit

Permalink
#41: Added the link to hertz configs
Browse files Browse the repository at this point in the history
  • Loading branch information
roma-glushko committed Jan 21, 2024
1 parent e1bceef commit 86cf06f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/api/http/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ func (cfg *ServerConfig) Address() string {
}

func (cfg *ServerConfig) ToServer() *server.Hertz {
// More configs are listed on https://www.cloudwego.io/docs/hertz/tutorials/basic-feature/engine/
serverOptions := []config.Option{
server.WithHostPorts(cfg.Address()),
server.WithTransport(netpoll.NewTransporter),
Expand Down

0 comments on commit 86cf06f

Please sign in to comment.