Fix compile errors.
This commit is contained in:
parent
4c531d1f2e
commit
bee5c84b29
@ -10,6 +10,7 @@ import (
|
||||
"strings"
|
||||
|
||||
"xinu.tv/email"
|
||||
"xinu.tv/email/maildir"
|
||||
|
||||
"github.com/golang/glog"
|
||||
"github.com/syndtr/goleveldb/leveldb"
|
||||
|
||||
@ -14,7 +14,7 @@ import (
|
||||
"github.com/golang/glog"
|
||||
"github.com/jordwest/imap-server"
|
||||
"github.com/jordwest/imap-server/mailstore"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -55,7 +55,7 @@ func main() {
|
||||
flag.Parse()
|
||||
defer glog.Flush()
|
||||
|
||||
http.Handle("/metrics", prometheus.Handler())
|
||||
http.Handle("/metrics", promhttp.Handler())
|
||||
go func() {
|
||||
glog.Fatal(http.ListenAndServe(*httpAddr, nil))
|
||||
}()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user