Skip to content

Commit

Permalink
fix(lint): Fix style problems, event name change
Browse files Browse the repository at this point in the history
  • Loading branch information
dustmop committed Feb 19, 2020
1 parent 7536221 commit 2f90119
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
8 changes: 2 additions & 6 deletions event/fsi.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package event

import (
)

var (
// Event type when FSI creating a link between a dataset and working directory
ETFSICreateLinkEvent = Topic("fsi::createLinkEvent")
// ETFSICreateLinkEvent type for when FSI creates a link between a dataset and working directory
ETFSICreateLinkEvent = Topic("fsi:createLinkEvent")
)

// FSICreateLinkEvent describes an FSI created link
Expand All @@ -14,4 +11,3 @@ type FSICreateLinkEvent struct {
Username string
Dsname string
}

2 changes: 1 addition & 1 deletion lib/fsi.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (m *FSIMethods) Checkout(p *CheckoutParams, out *string) (err error) {
log.Debugf("Checkout wrote components, successfully checked out dataset")

// Send an event to the bus about this checkout
m.inst.Bus().Publish(event.ETFSICheckoutEvent, event.FSICheckoutEvent{
m.inst.Bus().Publish(event.ETFSICreateLinkEvent, event.FSICreateLinkEvent{
FSIPath: p.Dir,
Username: ref.Peername,
Dsname: ref.Name,
Expand Down
1 change: 1 addition & 0 deletions lib/lib.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,7 @@ func NewInstanceFromConfigAndNode(cfg *config.Config, node *p2p.QriNode) *Instan
inst.store = node.Repo.Store()
inst.qfs = node.Repo.Filesystem()
inst.fsi = fsi.NewFSI(inst.repo)
inst.bus = event.NewBus(ctx)
}

return inst
Expand Down

0 comments on commit 2f90119

Please sign in to comment.