mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Move synclive to sync3
This commit is contained in:
parent
c33760d6d9
commit
e20a8ad067
@ -9,7 +9,7 @@ import (
|
||||
|
||||
syncv3 "github.com/matrix-org/sync-v3"
|
||||
"github.com/matrix-org/sync-v3/sync2"
|
||||
"github.com/matrix-org/sync-v3/synclive"
|
||||
"github.com/matrix-org/sync-v3/sync3"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -30,7 +30,7 @@ func main() {
|
||||
panic(err)
|
||||
}
|
||||
}()
|
||||
h, err := synclive.NewSyncLiveHandler(&sync2.HTTPClient{
|
||||
h, err := sync3.NewSync3Handler(&sync2.HTTPClient{
|
||||
Client: &http.Client{
|
||||
Timeout: 5 * time.Minute,
|
||||
},
|
||||
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"context"
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"context"
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"encoding/json"
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"context"
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"bytes"
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
@ -33,7 +33,7 @@ type SyncLiveHandler struct {
|
||||
ConnMap *ConnMap
|
||||
}
|
||||
|
||||
func NewSyncLiveHandler(v2Client sync2.Client, postgresDBURI string) (*SyncLiveHandler, error) {
|
||||
func NewSync3Handler(v2Client sync2.Client, postgresDBURI string) (*SyncLiveHandler, error) {
|
||||
sh := &SyncLiveHandler{
|
||||
V2: v2Client,
|
||||
Storage: state.NewStorage(postgresDBURI),
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"os"
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import "math"
|
||||
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"reflect"
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"bytes"
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"reflect"
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
type Response struct {
|
||||
Ops []ResponseOp `json:"ops"`
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"encoding/json"
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"sync"
|
@ -1,4 +1,4 @@
|
||||
package synclive
|
||||
package sync3
|
||||
|
||||
import (
|
||||
"sort"
|
Loading…
x
Reference in New Issue
Block a user