diff options
author | Josh Bleecher Snyder <josh@tailscale.com> | 2021-01-17 09:49:39 -0800 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-01-20 19:57:06 +0100 |
commit | a86492a5673983fe7755631996a23c2dc510808f (patch) | |
tree | 5444c653678b076799fa756a49a24d3521665e94 /device/device.go | |
parent | 7ee95e053c280796ecfb5533000915e7daa13f69 (diff) |
device: remove QueueInboundElement.dropped
Now that we block when enqueueing to the decryption queue,
there is only one case in which we "drop" a inbound element,
when decryption fails.
We can use a simple, obvious, sync-free sentinel for that, elem.packet == nil.
Also, we can return the message buffer to the pool slightly later,
which further simplifies the code.
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'device/device.go')
0 files changed, 0 insertions, 0 deletions