<commit_before>package backendpool

import (
	"hash/fnv"
	"net/http"
	"sync"

	pb "github.com/mwitkow/kedge/_protogen/kedge/config/http/backends"
	"github.com/mwitkow/kedge/lib/metrics"
	"github.com/sirupsen/logrus"
)

// dynamic is a Pool to which you can update or remove routes.
type dynamic struct {
	mu sync.RWMutex

	backends       map[string]*backend
	backendFactory func(backend *pb.Backend) (*backend, error)
	logger         logrus.FieldLogger
}

func (s *dynamic) Close() error {
	s.mu.Lock()
	defer s.mu.Unlock()
	for _, be := range s.backends {
		be.Close()
	}
	return nil
}
<commit_msg>Fixed Close method type.<commit_after>package backendpool

import (
	"hash/fnv"
	"net/http"
	"sync"

	pb "github.com/mwitkow/kedge/_protogen/kedge/config/http/backends"
	"github.com/mwitkow/kedge/lib/metrics"
	"github.com/sirupsen/logrus"
)

// dynamic is a Pool to which you can update or remove routes.
type dynamic struct {
	mu sync.RWMutex

	backends       map[string]*backend
	backendFactory func(backend *pb.Backend) (*backend, error)
	logger         logrus.FieldLogger
}

func (s *dynamic) Close() {
	s.mu.Lock()
	defer s.mu.Unlock()
	for _, be := range s.backends {
		be.Close()
	}
}

{'fraction_non_alphanumeric': 0.13014273719563393, 'fraction_numerical': 0.0, 'mean_word_length': 3.6381322957198443, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2104621', 'n_tokens_mistral': 451, 'n_tokens_neox': 446, 'n_words': 102}