mirror of
https://github.com/hibiken/asynqmon.git
synced 2025-09-22 06:46:34 +08:00
unexport types
This commit is contained in:
@@ -72,7 +72,7 @@ import (
|
||||
var staticContents embed.FS
|
||||
|
||||
func main() {
|
||||
api := asynqmon.NewHTTPHandler(asynqmon.Options{
|
||||
h := asynqmon.New(asynqmon.Options{
|
||||
RedisConnOpt: asynq.RedisClientOpt{Addr: ":6379"},
|
||||
StaticContentHandler: asynqmon.NewStaticContentHandler(
|
||||
staticContents,
|
||||
@@ -80,10 +80,10 @@ func main() {
|
||||
"index.html",
|
||||
),
|
||||
})
|
||||
defer api.Close()
|
||||
defer h.Close()
|
||||
|
||||
srv := &http.Server{
|
||||
Handler: api,
|
||||
Handler: h,
|
||||
Addr: ":8080",
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user