diff options
Diffstat (limited to 'worker.go')
| -rw-r--r-- | worker.go | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -4,10 +4,8 @@ package lilin import ( - "maps" "os" "path/filepath" - "slices" "strings" "sync" @@ -85,14 +83,3 @@ func (wrk *worker) loadServiceDir(configDir string) (err error) { } return nil } - -// summary return all services status ordered by name. -func (wrk *worker) summary() (list []Service) { - wrk.Lock() - var keys = slices.Sorted(maps.Keys(wrk.Services)) - for _, name := range keys { - list = append(list, *wrk.Services[name]) - } - wrk.Unlock() - return list -} |
