1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Add proto versions

This commit is contained in:
mcrakhman 2024-07-02 12:46:45 +02:00
parent bab5cb694f
commit 4024cfacd1
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B

View file

@ -28,11 +28,13 @@ var (
// ProtoVersion 1 - version with yamux over tcp and quic
// ProtoVersion 2 - acl compatible version
// ProtoVersion 3 - acl with breaking changes / multiplayer
ProtoVersion = uint32(3)
AclCompatibleVersion = uint32(2)
ProtoVersion = uint32(3)
NewSyncProtoVersion = uint32(4)
)
var (
compatibleVersions = []uint32{2, ProtoVersion}
compatibleVersions = []uint32{AclCompatibleVersion, ProtoVersion, NewSyncProtoVersion}
)
func New() SecureService {