Skip to content

Commit

Permalink
chore: refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbraemer committed Jul 23, 2023
1 parent b034584 commit bafa850
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion pkg/util/configutil/duration.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (d *Duration) UnmarshalJSON(data []byte) error {
return nil
}

func (d *Duration) MarshalYAML() (interface{}, error) {
func (d *Duration) MarshalYAML() (any, error) {
return time.Duration(*d).String(), nil
}
func (d *Duration) UnmarshalYAML(value *yaml.Node) error {
Expand Down
5 changes: 0 additions & 5 deletions pkg/util/connectutil/config/name.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"
"io"
"math/rand"
"net/http"
"time"

Expand All @@ -14,10 +13,6 @@ import (
"go.minekube.com/gate/pkg/version"
)

func init() {
rand.Seed(time.Now().UnixNano()) //nolint:staticcheck
}

func randomEndpointName(ctx context.Context) string {
ctx, cancel := context.WithTimeout(ctx, time.Second*5)
defer cancel()
Expand Down

0 comments on commit bafa850

Please sign in to comment.