go fmt ./...

This commit is contained in:
Anthony Wang 2024-05-24 03:08:34 +00:00
parent 37793acaa2
commit 6f551cd1d9
Signed by: a
SSH key fingerprint: SHA256:B5ADfMCqd2M7d/jtXDoihAV/yfXOAbWWri9+GdCN4hQ
4 changed files with 5 additions and 6 deletions

View file

@ -16,7 +16,7 @@ type MatrixConfig struct {
// In element.io, find it under Settings -> About & Help -> Advanced.
AccessToken string
RoomId string
HomeServer string
HomeServer string
}
type MatrixClient struct {

View file

@ -215,7 +215,7 @@ func main() {
go func() { // timed update
for {
err := routineCheck(5*time.Minute)
err := routineCheck(5 * time.Minute)
if err != nil {
log.Printf("Error in routineCheck: %v", err)
// idea: maybe we should delay here
@ -223,7 +223,6 @@ func main() {
}
}()
err = srv.Serve(ln) // serve http
if err != http.ErrServerClosed {
log.Panic(err)

View file

@ -2,13 +2,13 @@ package main
import (
"fmt"
"log"
"git.exozy.me/exozyme/status/core"
"log"
)
func main() {
btime, err := core.GetBootTime()
if err!=nil {
if err != nil {
log.Fatal(err)
}
fmt.Println(btime)

View file

@ -1,9 +1,9 @@
package scanner
import (
x509 "crypto/x509"
"errors"
"net/http"
x509 "crypto/x509"
)
func CheckHTTP200(ctx Context, url string) (bool, string) {