Skip to content

Commit

Permalink
remove no effect assign optimazation
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed Apr 12, 2024
1 parent 02ae195 commit faa67f3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/scorper/http/streamserver.nim
Original file line number Diff line number Diff line change
Expand Up @@ -804,12 +804,8 @@ template processClientImpl(isSecurity: bool): proc (server: StreamServer, transp
proc processClient(server: StreamServer, transp: StreamTransport) {.async.} =
var req = ImpRequest()
req.headers = newHttpHeaders()
when defined(gcArc) or defined(gcOrc):
req.server = cast[Scorper](server)
req.transp = transp
else:
shallowCopy(req.server, cast[Scorper](server))
shallowCopy(req.transp, transp)
req.server = cast[Scorper](server)
req.transp = transp
try:
req.hostname = $req.transp.localAddress
except TransportError:
Expand Down

0 comments on commit faa67f3

Please sign in to comment.