sasa1977 / site_encrypt

Integrated certification via Let's encrypt for Elixir-powered sites
MIT License
462 stars 33 forks source link

Avoids the `Plug.Cowboy.child_spec` warning when using bandit. #52

Closed Hermanverschooten closed 10 months ago

Hermanverschooten commented 10 months ago

I noticed when I use the current main branch of the repo with bandit, I would get a warning

warning: Plug.Cowboy.child_spec/1 is undefined (module Plug.Cowboy is not available or is yet to be defined)
  lib/site_encrypt/acme/server.ex:275: SiteEncrypt.Acme.Server.endpoint_spec/3

This change avoids this by delaying the call to child_spec/1.