Skip to content

Commit 91f1c5c

Browse files
committed
$ gofmt changes in updated Go version
1 parent 368fa25 commit 91f1c5c

File tree

6 files changed

+18
-13
lines changed

6 files changed

+18
-13
lines changed

pkg/blorm/interface.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// this was born because: https://github.com/asdine/storm/issues/222#issuecomment-472791001
33
//
44
// Warning: don't Each() and Delete() at the same time. Deletion messes with the iteration
5-
// order somehow, and I observed half of the records was deleted when I tried to delete all.
5+
//
6+
// order somehow, and I observed half of the records was deleted when I tried to delete all.
67
package blorm
78

89
import (

pkg/mutexmap/mutexmap.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import (
99
// When you TryLock():
1010
// a) it won't open if it's already occupied. (because it's locked inside) decide to do something else
1111
// b) it opens and you get in and the stall gets reserved/locked for you. When you get out
12-
// you call the unlock callback you obtained from TryLock() to return the stall for use.
12+
//
13+
// you call the unlock callback you obtained from TryLock() to return the stall for use.
1314
type M struct {
1415
// value is chan that Lock() can use to listen for unlock event (close of channel)
1516
locks map[string]chan bool

pkg/smart/smart.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ func SmartCtlBackend(device string) ([]byte, error) {
2525
return stdout, silenceSmartCtlAutomationHostileErrors(err)
2626
}
2727

28-
/* joonas/smartmontools built from simple Dockerfile:
28+
/*
29+
joonas/smartmontools built from simple Dockerfile:
2930
30-
FROM alpine:edge
31-
RUN apk add --update smartmontools
31+
FROM alpine:edge
32+
RUN apk add --update smartmontools
3233
*/
3334
func SmartCtlViaDockerBackend(device string) ([]byte, error) {
3435
// disks in /dev are visible without --privileged (by mapping /dev:/dev) but

pkg/stofuse/collectionadapter.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -502,10 +502,11 @@ func (a *changedFileInWorkdir) Open(ctx context.Context, req *fuse.OpenRequest,
502502
return &changedFileInWorkdirHandle{hdl}, nil
503503
}
504504

505-
/* To test
505+
/*
506+
To test
506507
507-
$ apt install -y attr
508-
$ setfattr -n user.foo -v hihi foobar.txt
508+
$ apt install -y attr
509+
$ setfattr -n user.foo -v hihi foobar.txt
509510
*/
510511
func (a *changedFileInWorkdir) Listxattr(ctx context.Context, req *fuse.ListxattrRequest, resp *fuse.ListxattrResponse) error {
511512
log.Printf("Listxattr %s", a.backingFilePath)

pkg/stoserver/health.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ func healthForScheduledJobs(tx *bbolt.Tx) stohealth.HealthChecker {
5555
}
5656

5757
/*
58-
<=5 freezing (fail)
59-
5-45 => ok (pass)
60-
45-50 => uncomfortable (warn)
61-
>=50 => too hot (fail)
58+
<=5 freezing (fail)
59+
5-45 => ok (pass)
60+
45-50 => uncomfortable (warn)
61+
>=50 => too hot (fail)
6262
*/
6363
func temperatureToHealthStatus(tempC int) stoservertypes.HealthStatus {
6464
switch {

pkg/stoserver/restapi.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,8 @@ func (h *handlers) DatabaseExportSha256s(rctx *httpauth.RequestContext, w http.R
982982
// robustness of the metadata database. that's why we have this export endpoint - to get
983983
// backups. more confidence will come when this whole system is hooked up to Event Horizon.
984984
// Run this with:
985-
// $ curl -H "Authorization: Bearer $BUP_AUTHTOKEN" https://localhost/api/db/export
985+
//
986+
// $ curl -H "Authorization: Bearer $BUP_AUTHTOKEN" https://localhost/api/db/export
986987
func (h *handlers) DatabaseExport(rctx *httpauth.RequestContext, w http.ResponseWriter, r *http.Request) {
987988
tx, err := h.db.Begin(false)
988989
panicIfError(err)

0 commit comments

Comments
 (0)