remove shallow usages for ORC (#20109)
This commit is contained in:
parent
e8556b45f5
commit
9753dd0a1b
3 changed files with 8 additions and 4 deletions
|
|
@ -399,7 +399,8 @@ proc recv*(socket: AsyncSocket, size: int,
|
|||
## to be read then the future will complete with a value of `""`.
|
||||
if socket.isBuffered:
|
||||
result = newString(size)
|
||||
shallow(result)
|
||||
when not defined(nimSeqsV2):
|
||||
shallow(result)
|
||||
let originalBufPos = socket.currPos
|
||||
|
||||
if socket.bufLen == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue