Feat: guess limit
This commit is contained in:
3
main.go
3
main.go
@ -1,7 +1,6 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"gralias/config"
|
||||
"gralias/handlers"
|
||||
"log/slog"
|
||||
@ -19,7 +18,7 @@ func ListenToRequests(port string) error {
|
||||
mux := http.NewServeMux()
|
||||
server := &http.Server{
|
||||
Handler: handlers.LogRequests(handlers.GetSession(mux)),
|
||||
Addr: fmt.Sprintf(":%s", port),
|
||||
Addr: ":" + port,
|
||||
ReadTimeout: time.Second * 5, // TODO: to cfg
|
||||
WriteTimeout: 0, // sse streaming
|
||||
}
|
||||
|
Reference in New Issue
Block a user