forked from mirrors/homebox
confirm casing
This commit is contained in:
parent
e159087e5f
commit
687282ca68
4 changed files with 54 additions and 17 deletions
|
@ -20,7 +20,7 @@ type app struct {
|
|||
services *services.AllServices
|
||||
}
|
||||
|
||||
func NewApp(conf *config.Config) *app {
|
||||
func new(conf *config.Config) *app {
|
||||
s := &app{
|
||||
conf: conf,
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ func NewApp(conf *config.Config) *app {
|
|||
return s
|
||||
}
|
||||
|
||||
func (a *app) StartBgTask(t time.Duration, fn func()) {
|
||||
func (a *app) startBgTask(t time.Duration, fn func()) {
|
||||
for {
|
||||
a.server.Background(fn)
|
||||
time.Sleep(t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue