mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-11-04 16:40:21 +00:00
fix service api (#556)
* fix service api * update ServiceResponseItem * fix: ddns lock
This commit is contained in:
1 parent
47099b617e
commit
4ddad9ea00
10 files changed
+124
-53
No files matched your search
@@ -23,8 +23,8 @@ import (
|
||||
func listDDNS(c *gin.Context) ([]*model.DDNSProfile, error) {
|
||||
var ddnsProfiles []*model.DDNSProfile
|
||||
|
||||
singleton.DDNSCacheLock.RLock()
|
||||
defer singleton.DDNSCacheLock.RUnlock()
|
||||
singleton.DDNSListLock.RLock()
|
||||
defer singleton.DDNSListLock.RUnlock()
|
||||
|
||||
if err := copier.Copy(&ddnsProfiles, &singleton.DDNSList); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in new issue
Block a user