summaryrefslogtreecommitdiffhomepage
path: root/android/lib/map
diff options
context:
space:
mode:
authorSebastian Holmin <sebastian.holmin@mullvad.net>2025-01-09 14:06:59 +0100
committerSebastian Holmin <sebastian.holmin@mullvad.net>2025-01-09 15:13:11 +0100
commit29e173c888f539ee10d641825fcaeb6ec1e46a0b (patch)
treedffef441dcbdd08f06cc51c0ca5a46e05deb4fb9 /android/lib/map
parent7f57b1f767eb79acb372fb54d840c82e55a67fd5 (diff)
downloadmullvadvpn-29e173c888f539ee10d641825fcaeb6ec1e46a0b.tar.xz
mullvadvpn-29e173c888f539ee10d641825fcaeb6ec1e46a0b.zip
Fix panic on capacity=1
As `tokio::sync::mpsc` doesn't allow capacity to be zero, we cannot support buffering only one key pair if we generate it before sending. To get around this we use `reserve` to wait for capacity before generating the key.
Diffstat (limited to 'android/lib/map')
0 files changed, 0 insertions, 0 deletions