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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user