aboutsummaryrefslogtreecommitdiff
path: root/lib/dns/server_example_test.go
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2022-05-28 14:39:10 +0700
committerShulhan <ms@kilabit.info>2022-05-30 22:44:28 +0700
commitd3c7d2231f02167c33fdf27032c62d011d0992dc (patch)
treeebd2eeea5288760d33162dc50c2b6f502f3bd866 /lib/dns/server_example_test.go
parent91855910f469cb48a40522956f63b4640e4b0b9b (diff)
downloadpakakeh.go-d3c7d2231f02167c33fdf27032c62d011d0992dc.tar.xz
lib/dns: move all caches operations from Server to Caches type
Previously all caches operation are tied to the Server type. In order to separate the responsibilities between server and caches, we move all caches operations to Cache type.
Diffstat (limited to 'lib/dns/server_example_test.go')
-rw-r--r--lib/dns/server_example_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dns/server_example_test.go b/lib/dns/server_example_test.go
index e82c36ee..b4810364 100644
--- a/lib/dns/server_example_test.go
+++ b/lib/dns/server_example_test.go
@@ -74,7 +74,7 @@ func ExampleServer() {
log.Fatal(err)
}
- server.PopulateCaches(zoneFile.Messages(), zoneFile.Path)
+ server.Caches.InternalPopulate(zoneFile.Messages(), zoneFile.Path)
go func() {
err = server.ListenAndServe()