Skip to content

Bugged code? #800

@louisponet

Description

@louisponet

While browsing through the code to investigate some invalidations @timholy and I came across this part:

HTTP.jl/src/IODebug.jl

Lines 15 to 26 in 46687c8

struct IODebug{T <: IO} <: IO
io::T
log::Vector{Tuple{String,String}}
end
IODebug(io::T) where T <: IO = IODebug{T}(io, [])
logwrite(iod::IODebug, f, x) = push!(iod.log, ("➡️ ", f, x))
logread(iod::IODebug, f, x) = push!(iod.log, ("⬅️ ", f, x))
end

Does that code ever get used, and is it valid?
It is sadly not involved with the invalidations though.

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions