From bee5c84b29f8e3b602e9fdf7740294696f2e92fe Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Fri, 24 Feb 2023 21:07:35 -0800 Subject: [PATCH] Fix compile errors. --- cmd/md2leveldb/md2leveldb.go | 1 + cmd/ximap/ximap.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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)) }()