Skip to content

Commit

Permalink
Fix example usage of NewHTTPStats (#231)
Browse files Browse the repository at this point in the history
Co-authored-by: Dominic Plourde <plourded@amotus.ca>
  • Loading branch information
plourdedominic and Dominic Plourde authored May 18, 2023
1 parent 493f6c8 commit 6acd775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/tls/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func main() {

stats := listeners.NewHTTPStats("stats", ":8080", &listeners.Config{
TLSConfig: tlsConfig,
}, nil)
}, server.Info)
err = server.AddListener(stats)
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 6acd775

Please sign in to comment.