func ProvideLatchWrapper(latch common.BusyLatch) LatchWrapper {
	return func(h http.Handler) http.Handler {
		return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
			latch.Hold()
			h.ServeHTTP(w, req)
			latch.Release()
		})
	}
}
ProvideLatchWrapper is called by wire.
package rest
import (
	"context"
	"net/http"
	"runtime/pprof"
	"strings"
	"github.com/Mandala/go-log"
	"github.com/bobvawter/cacheroach/api/session"
	"github.com/bobvawter/cacheroach/api/token"
	"github.com/bobvawter/cacheroach/api/vhost"
	"github.com/bobvawter/cacheroach/pkg/bootstrap"
	"github.com/bobvawter/cacheroach/pkg/server/common"
	"github.com/bobvawter/cacheroach/pkg/server/oidc"
)
type Wrapper func(http.Handler) http.Handler
type LatchWrapper Wrapper