summaryrefslogtreecommitdiff
path: root/status/01-bat.go
diff options
context:
space:
mode:
authorhhvn <dev@hhvn.uk>2024-01-27 16:53:24 +0000
committerhhvn <dev@hhvn.uk>2024-01-27 16:55:10 +0000
commit4e7b725a88ed1ad19cc67cbbbb46f3702c3bee97 (patch)
tree1f28760f0ced888d9d76f506264155acc1b8be33 /status/01-bat.go
parente6a5202d0c75bc2ee744a76b73147726e91ee732 (diff)
register() in statuses: handle errs and start goroutine
Diffstat (limited to 'status/01-bat.go')
-rw-r--r--status/01-bat.go9
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)
}