1
0
mirror of https://github.com/go-micro/go-micro.git synced 2024-11-24 08:02:32 +02:00

Add String to Runtime interface

This commit is contained in:
Ben Toogood 2020-02-03 15:56:16 +00:00
parent 1b9cabd654
commit a1d5d6831f
2 changed files with 4 additions and 0 deletions

View File

@ -17,6 +17,8 @@ var (
// Runtime is a service runtime manager
type Runtime interface {
// String describes runtime
String() string
// Init initializes runtime
Init(...Option) error
// Create registers a service

View File

@ -170,6 +170,8 @@ func (s *service) Wait() {
s.Metadata["status"] = "error"
s.Metadata["error"] = err.Error()
s.err = err
} else {
s.Metadata["status"] = "done"
}
// no longer running