mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-29 16:58:34 +00:00
vformat supports multi-core processing (#757)
* Feat: vformat supports multi-core processing (#996) Co-authored-by: Loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com>
This commit is contained in:
parent
a97d45c93a
commit
3554886ce1
4 changed files with 24 additions and 23 deletions
|
@ -87,8 +87,7 @@ func (s *Service) Subscribe(name string) *Subscriber {
|
|||
done: done.New(),
|
||||
}
|
||||
s.Lock()
|
||||
subs := append(s.subs[name], sub)
|
||||
s.subs[name] = subs
|
||||
s.subs[name] = append(s.subs[name], sub)
|
||||
s.Unlock()
|
||||
common.Must(s.ctask.Start())
|
||||
return sub
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue