mirror of
https://github.com/lukaszraczylo/lolcathost.git
synced 2026-07-01 03:35:18 +00:00
Cleanup, signing and update of internals.
This commit is contained in:
@@ -36,7 +36,7 @@ func setupTestServer(t *testing.T) (*Server, string, func()) {
|
||||
server := &Server{
|
||||
socketPath: socketPath,
|
||||
config: cfgManager,
|
||||
hosts: NewHostsManagerWithPaths(hostsPath, backupDir),
|
||||
hosts: newHostsManagerWithPaths(hostsPath, backupDir),
|
||||
flusher: NewDNSFlusher(FlushMethodAuto),
|
||||
rateLimiter: NewRateLimiter(100, time.Minute),
|
||||
stopCh: make(chan struct{}),
|
||||
@@ -754,7 +754,7 @@ func BenchmarkServer_HandleSet(b *testing.B) {
|
||||
|
||||
server := &Server{
|
||||
config: cfgManager,
|
||||
hosts: NewHostsManagerWithPaths(hostsPath, backupDir),
|
||||
hosts: newHostsManagerWithPaths(hostsPath, backupDir),
|
||||
flusher: NewDNSFlusher(FlushMethodAuto),
|
||||
rateLimiter: NewRateLimiter(100000, time.Minute),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user