Skip to content

Commit

Permalink
chore: disable depguard from golangci
Browse files Browse the repository at this point in the history
  • Loading branch information
gacevicljubisa committed Dec 21, 2023
1 parent 47a84fc commit 020be07
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linters:
enable:
- asciicheck
- bidichk
- depguard
# - depguard
- dogsled
- durationcheck
- errcheck
Expand Down Expand Up @@ -56,4 +56,4 @@ issues:
- linters:
- forbidigo
path: cmd/
text: "use of `fmt.Print" ## allow fmt.Print in cmd directory
text: "use of `fmt.Print" ## allow fmt.Print in cmd directory
9 changes: 3 additions & 6 deletions pkg/funder/funder.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,12 @@ import (

type FunderOptions func(*Options)

// Options represents funder options
type Options struct {
log logging.Logger
}

// DefaultOptions returns default options
func DefaultOptions() *Options {
return &Options{
log: logging.New(os.Stdout, 4),
Expand All @@ -46,6 +48,7 @@ func Fund(
options ...FunderOptions,
) error {
var err error

opts := DefaultOptions()
for _, opt := range options {
opt(opts)
Expand All @@ -65,12 +68,6 @@ func Fund(
}
}

// TODO: make logging configurable in beekeeper, use WithOptions
// if log == nil {
// //dicard
// log = logging.New(os.Stdout, logging.LevelInfo)
// }

opts.log.Infof("node funder started...")
defer opts.log.Info("node funder finished")

Expand Down

0 comments on commit 020be07

Please sign in to comment.