Fix compile errors.

This commit is contained in:
Bill Thiede 2023-02-24 21:07:35 -08:00
parent 4c531d1f2e
commit bee5c84b29
2 changed files with 3 additions and 2 deletions

View File

@ -10,6 +10,7 @@ import (
"strings" "strings"
"xinu.tv/email" "xinu.tv/email"
"xinu.tv/email/maildir"
"github.com/golang/glog" "github.com/golang/glog"
"github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb"

View File

@ -14,7 +14,7 @@ import (
"github.com/golang/glog" "github.com/golang/glog"
"github.com/jordwest/imap-server" "github.com/jordwest/imap-server"
"github.com/jordwest/imap-server/mailstore" "github.com/jordwest/imap-server/mailstore"
"github.com/prometheus/client_golang/prometheus" "github.com/prometheus/client_golang/prometheus/promhttp"
) )
var ( var (
@ -55,7 +55,7 @@ func main() {
flag.Parse() flag.Parse()
defer glog.Flush() defer glog.Flush()
http.Handle("/metrics", prometheus.Handler()) http.Handle("/metrics", promhttp.Handler())
go func() { go func() {
glog.Fatal(http.ListenAndServe(*httpAddr, nil)) glog.Fatal(http.ListenAndServe(*httpAddr, nil))
}() }()