go fmt ./...
This commit is contained in:
parent
37793acaa2
commit
6f551cd1d9
4 changed files with 5 additions and 6 deletions
|
@ -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 {
|
||||
|
|
3
main.go
3
main.go
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
package scanner
|
||||
|
||||
import (
|
||||
x509 "crypto/x509"
|
||||
"errors"
|
||||
"net/http"
|
||||
x509 "crypto/x509"
|
||||
)
|
||||
|
||||
func CheckHTTP200(ctx Context, url string) (bool, string) {
|
||||
|
|
Loading…
Reference in a new issue