Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
renaynay committed Jun 22, 2020
1 parent a1f3e33 commit c471809
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion node/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (ctx *ServiceContext) ResolvePath(path string) string {
return ctx.Config.ResolvePath(path)
}

// Lifecycle retrieves a currently running lifecycle registered of a specific type.
// Lifecycle retrieves a currently running Lifecycle registered of a specific type.
func (ctx *ServiceContext) Lifecycle(lifecycle interface{}) error {
element := reflect.ValueOf(lifecycle).Elem()
if running, ok := ctx.Lifecycles[element.Type()]; ok {
Expand Down
1 change: 1 addition & 0 deletions p2p/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,7 @@ func (srv *Server) PeersInfo() []*PeerInfo {
return infos
}

// Running returns whether the server is running.
func (srv *Server) Running() bool {
return srv.running
}

0 comments on commit c471809

Please sign in to comment.