Skip to content

Commit

Permalink
chore: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut committed Jun 21, 2024
1 parent 66ca741 commit bf240b1
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions webrtc/dtls/dtls_transport.nim
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ logScope:
# TODO:
# - Check the viability of the add/pop first/last of the asyncqueue with the limit.
# There might be some errors (or crashes) with some edge cases with the no wait option
# - Not critical - Check how to make a better use of MBEDTLS_ERR_SSL_WANT_WRITE

# This limit is arbitrary, it could be interesting to make it configurable.
const PendingHandshakeLimit = 1024
Expand All @@ -57,14 +56,6 @@ type
serverCert: mbedtls_x509_crt
localCert: seq[byte]

proc updateOrAdd(aq: AsyncQueue[(TransportAddress, seq[byte])],
raddr: TransportAddress, buf: seq[byte]) =
for kv in aq.mitems():
if kv[0] == raddr:
kv[1] = buf
return
aq.addLastNoWait((raddr, buf))

proc new*(T: type Dtls, transport: Stun, laddr: TransportAddress): T =
var self = T()

Expand Down

0 comments on commit bf240b1

Please sign in to comment.