mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
Run request pool
This commit is contained in:
parent
54245aef82
commit
eed5019bff
3 changed files with 2 additions and 1 deletions
|
@ -13,6 +13,7 @@ import (
|
|||
type RequestPool interface {
|
||||
TryTake(peerId, objectId string) bool
|
||||
Release(peerId, objectId string)
|
||||
Run()
|
||||
QueueRequestAction(peerId, objectId string, action func(ctx context.Context), remove func()) (err error)
|
||||
Close()
|
||||
}
|
||||
|
|
|
@ -41,6 +41,7 @@ func (g *globalSync) Init(a *app.App) (err error) {
|
|||
}
|
||||
|
||||
func (g *globalSync) Run(ctx context.Context) (err error) {
|
||||
g.rp.Run()
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
@ -126,7 +126,6 @@ func (r *requestManager) HandleStreamRequest(ctx context.Context, rq syncdeps.Re
|
|||
}
|
||||
|
||||
func (r *requestManager) Close() {
|
||||
r.requestPool.Close()
|
||||
}
|
||||
|
||||
func fullId(peerId, objectId string) string {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue