mirror of https://github.com/edouardparis/lntop
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
385 B
Go
20 lines
385 B
Go
5 years ago
|
package pubsub
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
"sync"
|
||
|
|
||
|
"github.com/edouardparis/lntop/app"
|
||
|
"github.com/edouardparis/lntop/events"
|
||
|
"github.com/edouardparis/lntop/logging"
|
||
|
)
|
||
|
|
||
|
func Run(ctx context.Context, app *app.App, sub chan *events.Event) error {
|
||
|
logger := app.Logger.With(logging.String("logger", "pubsub"))
|
||
|
wg := &sync.WaitGroup{}
|
||
|
|
||
|
logger.Debug("Starting...")
|
||
|
wg.Wait()
|
||
|
return nil
|
||
|
}
|