Merge pull request #387 from influxdata/remove-mrfusion

Remove mrfusion name from source
pull/388/head
Chris Goller 2016-11-07 11:33:23 -06:00 committed by GitHub
commit 3bdcb2c578
2 changed files with 3 additions and 4 deletions

View File

@ -103,9 +103,9 @@ An example usage in Go would be:
```go ```go
func ShallIPass(ctx context.Context) (string, error) { 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" { 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 return "run you fools", nil
} }

View File

@ -110,8 +110,7 @@ func openService(boltPath, cannedPath string, logger chronograf.Logger) Service
if err := db.Open(); err != nil { if err := db.Open(); err != nil {
logger. logger.
WithField("component", "boltstore"). WithField("component", "boltstore").
Panic("Unable to open boltdb; is there a mrfusion already running?", err) Panic("Unable to open boltdb; is there a chronograf already running?", err)
panic(err)
} }
apps := canned.NewApps(cannedPath, &uuid.V4{}, logger) apps := canned.NewApps(cannedPath, &uuid.V4{}, logger)