From 9f319d5c51468216088abe9c21744747cc62fec2 Mon Sep 17 00:00:00 2001 From: looklose Date: Wed, 10 Apr 2024 19:40:42 +0800 Subject: [PATCH 1/2] chore: fix function names in comment Signed-off-by: looklose --- internal/dnsforward/stats.go | 2 +- internal/home/service.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/dnsforward/stats.go b/internal/dnsforward/stats.go index 220f151c..d3eef256 100644 --- a/internal/dnsforward/stats.go +++ b/internal/dnsforward/stats.go @@ -124,7 +124,7 @@ func (s *Server) logQuery(dctx *dnsContext, ip net.IP, processingTime time.Durat s.queryLog.Add(p) } -// updatesStats writes the request into statistics. +// updateStats writes the request into statistics. func (s *Server) updateStats(dctx *dnsContext, clientIP string, processingTime time.Duration) { pctx := dctx.proxyCtx diff --git a/internal/home/service.go b/internal/home/service.go index cb8f9b8b..6690e677 100644 --- a/internal/home/service.go +++ b/internal/home/service.go @@ -306,7 +306,7 @@ func handleServiceStatusCommand(s service.Service) { } } -// handleServiceStatusCommand handles service "install" command +// handleServiceInstallCommand handles service "install" command func handleServiceInstallCommand(s service.Service) { err := svcAction(s, "install") if err != nil { @@ -340,7 +340,7 @@ AdGuard Home is now available at the following addresses:`) } } -// handleServiceStatusCommand handles service "uninstall" command +// handleServiceUninstallCommand handles service "uninstall" command func handleServiceUninstallCommand(s service.Service) { if aghos.IsOpenWrt() { // On OpenWrt it is important to run disable command first From b18fe84c5c87a87246afc1fe06aeeeca472ffc67 Mon Sep 17 00:00:00 2001 From: Ainar Garipov Date: Fri, 26 Apr 2024 18:45:10 +0300 Subject: [PATCH 2/2] dnsforward, home: imp more --- internal/dnsforward/stats.go | 2 +- internal/home/service.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/dnsforward/stats.go b/internal/dnsforward/stats.go index 0033b811..ffcbc6ef 100644 --- a/internal/dnsforward/stats.go +++ b/internal/dnsforward/stats.go @@ -130,7 +130,7 @@ func (s *Server) logQuery(dctx *dnsContext, ip net.IP, processingTime time.Durat s.queryLog.Add(p) } -// updateStats writes the request into statistics. +// updateStats writes the request data into statistics. func (s *Server) updateStats(dctx *dnsContext, clientIP string, processingTime time.Duration) { pctx := dctx.proxyCtx diff --git a/internal/home/service.go b/internal/home/service.go index 93f90e53..30bef2a7 100644 --- a/internal/home/service.go +++ b/internal/home/service.go @@ -306,7 +306,7 @@ func handleServiceStatusCommand(s service.Service) { } } -// handleServiceInstallCommand handles service "install" command +// handleServiceInstallCommand handles service "install" command. func handleServiceInstallCommand(s service.Service) { err := svcAction(s, "install") if err != nil { @@ -340,7 +340,7 @@ AdGuard Home is now available at the following addresses:`) } } -// handleServiceUninstallCommand handles service "uninstall" command +// handleServiceUninstallCommand handles service "uninstall" command. func handleServiceUninstallCommand(s service.Service) { if aghos.IsOpenWrt() { // On OpenWrt it is important to run disable command first