Remove mrfusion name from source
parent
134df35db2
commit
ee82586ded
|
@ -103,9 +103,9 @@ An example usage in Go would be:
|
|||
|
||||
```go
|
||||
func ShallIPass(ctx context.Context) (string, error) {
|
||||
principal := ctx.Value(mrfusion.PrincipalKey).(mrfusion.Principal)
|
||||
principal := ctx.Value(chronograf.PrincipalKey).(chronograf.Principal)
|
||||
if principal != "gandolf@moria.misty.mt" {
|
||||
return "you shall not pass", mrfusion.ErrAuthentication
|
||||
return "you shall not pass", chronograf.ErrAuthentication
|
||||
}
|
||||
return "run you fools", nil
|
||||
}
|
||||
|
|
|
@ -109,8 +109,7 @@ func openService(boltPath, cannedPath string, logger chronograf.Logger) Service
|
|||
if err := db.Open(); err != nil {
|
||||
logger.
|
||||
WithField("component", "boltstore").
|
||||
Panic("Unable to open boltdb; is there a mrfusion already running?", err)
|
||||
panic(err)
|
||||
Panic("Unable to open boltdb; is there a chronograf already running?", err)
|
||||
}
|
||||
|
||||
apps := canned.NewApps(cannedPath, &uuid.V4{}, logger)
|
||||
|
|
Loading…
Reference in New Issue