1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-08-06 19:44:01 +08:00

style: gofumpt and godot [skip changelog] (#10081)

This commit is contained in:
Kay
2023-08-17 15:32:08 +03:30
committed by GitHub
parent b4f415088f
commit f12b372af9
148 changed files with 449 additions and 433 deletions

View File

@ -21,9 +21,7 @@ import (
routing "github.com/libp2p/go-libp2p/core/routing"
)
var (
errAllowOffline = errors.New("can't put while offline: pass `--allow-offline` to override")
)
var errAllowOffline = errors.New("can't put while offline: pass `--allow-offline` to override")
const (
dhtVerboseOptionName = "verbose"
@ -75,7 +73,6 @@ var findProvidersRoutingCmd = &cmds.Command{
}
c, err := cid.Parse(req.Arguments[0])
if err != nil {
return err
}
@ -495,8 +492,10 @@ identified by QmFoo.
Type: routing.QueryEvent{},
}
type printFunc func(obj *routing.QueryEvent, out io.Writer, verbose bool) error
type pfuncMap map[routing.QueryEventType]printFunc
type (
printFunc func(obj *routing.QueryEvent, out io.Writer, verbose bool) error
pfuncMap map[routing.QueryEventType]printFunc
)
func printEvent(obj *routing.QueryEvent, out io.Writer, verbose bool, override pfuncMap) error {
if verbose {