WIP: pass synchronize channel buffers integration test

This commit is contained in:
Mikayla 2023-08-21 17:53:37 -07:00
parent a7a4e2e369
commit 364ed1f840
No known key found for this signature in database
15 changed files with 411 additions and 135 deletions

View file

@ -249,8 +249,10 @@ messages!(
(GetPrivateUserInfoResponse, Foreground),
(GetChannelMembers, Foreground),
(GetChannelMembersResponse, Foreground),
(GetChannelBuffer, Foreground),
(GetChannelBufferResponse, Foreground)
(OpenChannelBuffer, Foreground),
(OpenChannelBufferResponse, Foreground),
(CloseChannelBuffer, Background),
(UpdateChannelBuffer, Foreground)
);
request_messages!(
@ -317,7 +319,8 @@ request_messages!(
(UpdateParticipantLocation, Ack),
(UpdateProject, Ack),
(UpdateWorktree, Ack),
(GetChannelBuffer, GetChannelBufferResponse)
(OpenChannelBuffer, OpenChannelBufferResponse),
(CloseChannelBuffer, Ack)
);
entity_messages!(
@ -373,6 +376,8 @@ entity_messages!(
UpdateDiffBase
);
entity_messages!(buffer_id, UpdateChannelBuffer);
const KIB: usize = 1024;
const MIB: usize = KIB * 1024;
const MAX_BUFFER_LEN: usize = MIB;