diff options
author | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-15 05:29:03 -0400 |
---|---|---|
committer | pg9182 <96569817+pg9182@users.noreply.github.com> | 2022-10-15 05:29:03 -0400 |
commit | bcdb9f7b4daa335df4029b7d546d2c3719fa8142 (patch) | |
tree | 8b9a82360ba84f723a5609d8a02e1dc885caa816 /pkg/api/api0 | |
parent | b135e321c2253caf532e5e107350d2af3b97fc3d (diff) | |
download | Atlas-bcdb9f7b4daa335df4029b7d546d2c3719fa8142.tar.gz Atlas-bcdb9f7b4daa335df4029b7d546d2c3719fa8142.zip |
pkg/api/api0: Rename ServerList.GetServerByIP -> ServerList.GetServerCountByIP
Diffstat (limited to 'pkg/api/api0')
-rw-r--r-- | pkg/api/api0/serverlist.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/api0/serverlist.go b/pkg/api/api0/serverlist.go index f7f2726..c99dfbc 100644 --- a/pkg/api/api0/serverlist.go +++ b/pkg/api/api0/serverlist.go @@ -388,7 +388,7 @@ func (s *ServerList) DeleteServerByID(id string) bool { // GetServerCountByIP gets the number of live servers for the given IP address. // If ip is the zero netip.Addr, the total number of live servers are returned. -func (s *ServerList) GetServerByIP(ip netip.Addr) int { +func (s *ServerList) GetServerCountByIP(ip netip.Addr) int { // take a read lock on the server list s.mu.RLock() defer s.mu.RUnlock() |