tower api deprecates withPeriod, just provide Integer to onPeriod
cabal deps: all packages use tower 0.6 api