Skip to content

Commit

Permalink
fix: removing unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
WendelHime committed Nov 22, 2024
1 parent 44f3ee6 commit 61c4539
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions dialer/bandit.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ import (

// BanditDialer is responsible for continually choosing the optimized dialer.
type BanditDialer struct {
dialers []ProxyDialer
bandit bandit.Bandit
opts *Options
dialerWeights map[string]BanditMetrics
dialers []ProxyDialer
bandit bandit.Bandit
opts *Options
}

// NewBandit creates a new bandit given the available dialers and options with
Expand All @@ -41,7 +40,6 @@ func NewBandit(opts *Options) (Dialer, error) {
log.Debugf("Loading bandit weights from %s", opts.LoadLastBanditRewards)
// TODO: Load the weights from the file.
dialerWeights := opts.LoadLastBanditRewards()
dialer.dialerWeights = dialerWeights
counts := make([]int, len(dialers))
rewards := make([]float64, len(dialers))
for arm, dialer := range dialers {
Expand Down

0 comments on commit 61c4539

Please sign in to comment.