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:
1 parent
a97d45c93a
commit
3554886ce1
4 files changed
+24
-23
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user