diff --git a/cmd/md2leveldb/md2leveldb.go b/cmd/md2leveldb/md2leveldb.go index 27ffef9..9c49521 100644 --- a/cmd/md2leveldb/md2leveldb.go +++ b/cmd/md2leveldb/md2leveldb.go @@ -10,6 +10,7 @@ import ( "strings" "xinu.tv/email" + "xinu.tv/email/maildir" "github.com/golang/glog" "github.com/syndtr/goleveldb/leveldb" diff --git a/cmd/ximap/ximap.go b/cmd/ximap/ximap.go index 19214cf..131d971 100644 --- a/cmd/ximap/ximap.go +++ b/cmd/ximap/ximap.go @@ -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)) }()