diff options
| author | hhvn <dev@hhvn.uk> | 2024-01-27 16:53:24 +0000 |
|---|---|---|
| committer | hhvn <dev@hhvn.uk> | 2024-01-27 16:55:10 +0000 |
| commit | 4e7b725a88ed1ad19cc67cbbbb46f3702c3bee97 (patch) | |
| tree | 1f28760f0ced888d9d76f506264155acc1b8be33 /status/01-bat.go | |
| parent | e6a5202d0c75bc2ee744a76b73147726e91ee732 (diff) | |
register() in statuses: handle errs and start goroutine
Diffstat (limited to 'status/01-bat.go')
| -rw-r--r-- | status/01-bat.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/status/01-bat.go b/status/01-bat.go index 5eb9295..85643f1 100644 --- a/status/01-bat.go +++ b/status/01-bat.go @@ -94,12 +94,5 @@ func bat(name string) error { } func init() { - name := "bat" - register(name) - - go func(){ - for { - checkError(name, bat(name)) - } - }() + register("bat", bat) } |