1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-10 18:10:54 +09:00

WIP compatibility

This commit is contained in:
mcrakhman 2024-07-03 10:56:04 +02:00
parent da23e685f4
commit e05b2146fa
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
5 changed files with 121 additions and 1 deletions

View file

@ -8,6 +8,7 @@ import (
"storj.io/drpc"
"github.com/anyproto/any-sync/app"
"github.com/anyproto/any-sync/commonspace/spacesyncproto"
"github.com/anyproto/any-sync/commonspace/sync/syncdeps"
"github.com/anyproto/any-sync/util/multiqueue"
)
@ -19,6 +20,11 @@ type CounterSyncHandler struct {
updateHandler *CounterUpdateHandler
}
func (c *CounterSyncHandler) HandleDeprecatedObjectSync(ctx context.Context, req *spacesyncproto.ObjectSyncMessage) (resp *spacesyncproto.ObjectSyncMessage, err error) {
//TODO implement me
panic("implement me")
}
func (c *CounterSyncHandler) ApplyRequest(ctx context.Context, rq syncdeps.Request, requestSender syncdeps.RequestSender) error {
collector := NewCounterResponseCollector(c.counter)
return requestSender.SendRequest(ctx, rq, collector)