Platform sanity checks (#2271)

* Platform sanity checks

* Don't yell about `root` because Docker
This commit is contained in:
Neil Alexander 2022-03-11 17:27:12 +00:00 committed by GitHub
parent 507a8e6773
commit 01d71a767d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 31 additions and 0 deletions

View file

@ -100,6 +100,7 @@ const (
// The componentName is used for logging purposes, and should be a friendly name
// of the compontent running, e.g. "SyncAPI"
func NewBaseDendrite(cfg *config.Dendrite, componentName string, options ...BaseDendriteOptions) *BaseDendrite {
platformSanityChecks()
useHTTPAPIs := false
cacheMetrics := true
for _, opt := range options {