1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Move HTTP server to services

This commit is contained in:
Maksym Pavlenko
2022-05-08 16:39:04 -07:00
parent d0ce613147
commit 79868dce7f
4 changed files with 7 additions and 7 deletions

View File

@@ -11,7 +11,7 @@ import (
"github.com/jessevdk/go-flags"
"github.com/mxpv/podsync/pkg/feed"
"github.com/mxpv/podsync/pkg/server"
"github.com/mxpv/podsync/services/web"
"github.com/robfig/cron/v3"
log "github.com/sirupsen/logrus"
"golang.org/x/sync/errgroup"
@@ -180,7 +180,7 @@ func main() {
})
// Run web server
srv := server.New(cfg.Server, storage)
srv := web.New(cfg.Server, storage)
group.Go(func() error {
log.Infof("running listener at %s", srv.Addr)