mirror of
https://github.com/Buriburizaem0n/nezha_domains.git
synced 2026-02-04 12:40:07 +00:00
feat: batch set server config (#983)
* feat: batch set server config * run in parallel * fix route * fix * return some information * fix order
This commit is contained in:
@@ -44,9 +44,9 @@ func (s *NezhaHandler) RequestTask(stream pb.NezhaService_RequestTaskServer) err
|
||||
return err
|
||||
}
|
||||
|
||||
singleton.ServerLock.RLock()
|
||||
singleton.ServerLock.Lock()
|
||||
singleton.ServerList[clientID].TaskStream = stream
|
||||
singleton.ServerLock.RUnlock()
|
||||
singleton.ServerLock.Unlock()
|
||||
|
||||
var result *pb.TaskResult
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user