Skip to content

Commit

Permalink
Don't use a separate LinkService for DAGService.GetLinks()
Browse files Browse the repository at this point in the history
Instead make LinkService a part of DAGService.  The LinkService is now
simply an interface that DAGService implements.  Also provide a
GetOfflineLinkService() method that the GC uses to get an offline
instance.

License: MIT
Signed-off-by: Kevin Atkinson <[email protected]>
  • Loading branch information
kevina committed Oct 6, 2016
1 parent c343d6b commit e5c0ecb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bitswap.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,3 +422,7 @@ func (bs *Bitswap) GetWantlist() []key.Key {
}
return out
}

func (bs *Bitswap) IsOnline() bool {
return true
}

0 comments on commit e5c0ecb

Please sign in to comment.