Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
listener: remove the peek from the listener filters #17395
listener: remove the peek from the listener filters #17395
Changes from 13 commits
8be8d06
dfe1577
c803b2c
a78ca39
8aaacff
f47023a
6ceb43b
1fc908d
7c27f7f
ab3fb54
066a931
0ce5112
375c1a5
eb61a46
7523574
31889ef
78d3104
52a5752
7ba4fb9
e8faf52
8a4d00e
bdf5559
133a795
2d1eda8
9696e49
0f4e465
f9ac956
4ce02f6
dff726a
94104e2
e227e38
efa5857
a07c7f9
d558321
e8ce277
3f73e69
7b8d032
82e5d2b
ae391ec
789456e
065d6b5
c2a57ad
d2540e8
bbfca55
1d55e8d
a360a31
06aa973
aba84f9
9015048
df2ad02
aaa6d9a
7bffad3
37c16a5
c7858e3
80f8f8b
9725f08
6b0f734
62c3845
0fff99b
4bda3ac
3be4ee0
d88ae5a
4a8d69e
41b3aa0
a606cf4
705a58d
fa5a289
c2b5b44
fd85009
8972610
4aeaeae
544a1c8
15fc820
4e60815
fe11b35
5370061
775f040
052fdca
268b047
1534dcd
347d474
6efde49
e98e7b9
0e26bd2
3f428ef
002aa00
bd75c8e
3eb8880
f2fd1fb
72e8f20
db35fbf
16caa4f
a479ef8
d3dd4d3
23c6341
1c1223f
abe8be2
046a769
02e5397
5705fe5
3b60d73
bfb1336
31aee37
55361a3
320e370
f73213d
a2e8799
d113f4c
0c03750
52828ee
959170b
d023827
d2fe6e2
d673110
6a25bfd
f5491ce
eee4e6e
7df678c
7e7c3da
b3d9a42
dfc5527
7dcd41c
bef9023
48b574d
72d978a
d32a126
0749507
12cb6b3
2ded76a
e77307a
cec8291
c9a90af
7965de9
197af3b
dbcbc21
607e348
f94ff76
a7baa39
03b494e
1c5a548
6df4baa
ff70529
0250b08
1b734b1
e1d277c
aa0e113
c713a4f
0296e09
0c5f498
f9d520f
a3cd1e0
0c9d84d
4088880
8d190cb
ec80e88
7daa3f0
1abda9f
8b454fd
c534a97
3248c72
3ea4755
920dc64
ca4fb1b
af40bae
38dffc7
b8bb4df
5136c59
cab9e59
730cf45
2b5636d
d30d7fc
ca84c78
2604a1b
b523971
5cdfe2b
26f32f0
ea26901
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this needed? I don't think this is portable, and I would be surprised if the definition of uint8_t isn't already included.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like everytime I use uint*_t, the vscode add it. But yes, the code works without this include.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I kind of agree that if you are doing all of this manual accounting Buffer::Instance is not giving you that much value here. I could go either way on this. I would still personally prefer we use Buffer::Instance and push the accounting into it if possible. @ggreenway wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have three options here:
8be8d06#diff-1bc1bf13bcf1d909c2713dd218446fea73ba40e513720685ca7cfc3117ace8bbR8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this ends up being a bit simpler with just a raw buffer owned by a unique_ptr, because with the PEEK read, we can't use
reserveSingleSlice
/commit
in the expected way, because we'd have to drain the entire buffer before each read (since the read always re-reads all previous data), which would free the buffer each time.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will update the code back to raw buffer