Skip to content

Commit

Permalink
Make the moduleManager field public
Browse files Browse the repository at this point in the history
Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
  • Loading branch information
MichelHollands committed Dec 14, 2020
1 parent 6c8ad52 commit f89738c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/loki/loki.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ type Loki struct {
cfg Config

// set during initialization
moduleManager *modules.Manager
ModuleManager *modules.Manager
serviceMap map[string]services.Service

server *server.Server
Expand Down Expand Up @@ -204,7 +204,7 @@ var GRPCStreamAuthInterceptor = func(srv interface{}, ss grpc.ServerStream, info

// Run starts Loki running, and blocks until a Loki stops.
func (t *Loki) Run() error {
serviceMap, err := t.moduleManager.InitModuleServices(t.cfg.Target)
serviceMap, err := t.ModuleManager.InitModuleServices(t.cfg.Target)
if err != nil {
return err
}
Expand Down Expand Up @@ -373,7 +373,7 @@ func (t *Loki) setupModuleManager() error {
}
}

t.moduleManager = mm
t.ModuleManager = mm

return nil
}

0 comments on commit f89738c

Please sign in to comment.