diff options
| author | Shulhan <m.shulhan@gmail.com> | 2019-12-13 19:40:39 +0700 |
|---|---|---|
| committer | Shulhan <m.shulhan@gmail.com> | 2019-12-18 09:51:54 +0700 |
| commit | 3a1fe710fafa30e64a57386d31e91cae6cd462a2 (patch) | |
| tree | 312a7ca9cf934be3b6e48662c47e82f5b4214c37 /lib/dns/example_server_test.go | |
| parent | e9a6eb1e3161fc6a02ba1f267808643bdd7c89ec (diff) | |
| download | pakakeh.go-3a1fe710fafa30e64a57386d31e91cae6cd462a2.tar.xz | |
dns: merge Start and Wait into ListenAndServe
Diffstat (limited to 'lib/dns/example_server_test.go')
| -rw-r--r-- | lib/dns/example_server_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dns/example_server_test.go b/lib/dns/example_server_test.go index 9daa0749..96aac8bb 100644 --- a/lib/dns/example_server_test.go +++ b/lib/dns/example_server_test.go @@ -52,7 +52,7 @@ func ExampleServer() { // Load records to be served from master file. server.LoadMasterFile("testdata/kilabit.info") - server.Start() + go server.ListenAndServe() // Wait for all listeners running. time.Sleep(500 * time.Millisecond) |
