Skip to content

Commit

Permalink
Remove redundant ticker
Browse files Browse the repository at this point in the history
  • Loading branch information
ldx committed Mar 8, 2021
1 parent 7c65951 commit ab49878
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/server/nodemanager/node_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@ import (
"encoding/base64"
"encoding/json"
"fmt"
"github.com/elotl/kip/pkg/util/instanceselector"
"math/rand"
"reflect"
"strings"
"sync"
"time"

"github.com/elotl/kip/pkg/util/instanceselector"

"github.com/docker/libkv/store"
"github.com/elotl/kip/pkg/api"
"github.com/elotl/kip/pkg/certs"
Expand Down Expand Up @@ -686,8 +687,6 @@ func (c *NodeController) removePodFromNode(node *api.Node) {
func (c *NodeController) dispatchNodesLoop(quit <-chan struct{}, wg *sync.WaitGroup, nodeBindingsUpdate <-chan map[string]string) {
wg.Add(1)
defer wg.Done()
poolTicker := time.NewTicker(c.Config.PoolInterval)
defer poolTicker.Stop()

podNodeMap := <-nodeBindingsUpdate
for {
Expand Down

0 comments on commit ab49878

Please sign in to comment.