Skip to content

Commit

Permalink
goimports
Browse files Browse the repository at this point in the history
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
  • Loading branch information
galal-hussein committed Aug 12, 2020
1 parent 78fd41f commit d3575b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkg/cli/cmds/server.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package cmds

import (
"time"

"github.com/rancher/k3s/pkg/version"
"github.com/rancher/spur/cli"
"github.com/rancher/spur/cli/altsrc"
"time"
)

const (
Expand Down
3 changes: 1 addition & 2 deletions pkg/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,8 +546,7 @@ func (e *ETCD) clientURLs(ctx context.Context, clientAccessInfo *clientaccess.In
func (e *ETCD) Snapshot(ctx context.Context) {
ticker := time.NewTicker(e.config.SnapshotInterval)
defer ticker.Stop()
for range ticker.C {
snapshotTime := <-ticker.C
for snapshotTime := range ticker.C {
logrus.Infof("Taking etcd snapshot at %s", snapshotTime.String())
sManager := snapshot.NewV3(nil)
tlsConfig, err := toTLSConfig(e.runtime)
Expand Down

0 comments on commit d3575b6

Please sign in to comment.