Skip to content

Commit

Permalink
Merge pull request #84 from jolin-io/invokelatest
Browse files Browse the repository at this point in the history
adding invokelatest
  • Loading branch information
schlichtanders authored Sep 9, 2024
2 parents 336df7d + 6bfc9d0 commit a3d48f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared.jl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function _serialize_msg(io::IO, msg_type::UInt8, msg_id::MsgID, msg_data::Any)
try
write(io, msg_type)
write(io, msg_id)
serialize(io, msg_data)
Base.invokelatest(serialize, io, msg_data)
write(io, MSG_BOUNDARY)
flush(io)
finally
Expand Down
2 changes: 1 addition & 1 deletion src/worker.jl
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function serve(server::Sockets.TCPServer)
msg_id = read(io, MsgID)

msg_data, success = try
(deserialize(io), true)
(Base.invokelatest(deserialize, io), true)
catch err
(format_error(err, catch_backtrace()), false)
finally
Expand Down

0 comments on commit a3d48f2

Please sign in to comment.