Skip to content

Commit

Permalink
Merge pull request #8 from tanmaykm/tanmaykm
Browse files Browse the repository at this point in the history
remove deprecations
  • Loading branch information
tanmaykm authored Jan 7, 2017
2 parents 6bf1fa8 + 7d25703 commit 5762fe5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
julia 0.4.5
Compat
Compat 0.9.5
6 changes: 3 additions & 3 deletions src/client.jl
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ end
# plain ascii format for numbers and strings so that they are interoperable with other implementations.
# julia serialization for other types.
const ser_pipe = PipeBuffer()
mc_serialize(val) = (mc_serialize(ser_pipe, val), takebuf_array(ser_pipe))
mc_serialize(val) = (mc_serialize(ser_pipe, val), take!(ser_pipe))
mc_serialize(s, val) = (serialize(s, val); 0)
mc_serialize{T<:Integer}(s, val::T) = (print(s, val); 1)
mc_serialize{T<:AbstractFloat}(s, val::T) = (print(s, val); 2)
Expand Down Expand Up @@ -186,9 +186,9 @@ function mc_send(mc::MemcacheClient, cmd::AbstractString, args...)
print(iob, arg)
end
write(iob, CMD_DLM)
cmdline = takebuf_string(iob)
cmdline = take!(iob)
write(mc.sock, cmdline)
mc.debug && println("send: $cmdline")
mc.debug && println("send: ", Compat.String(cmdline))
nothing
end

Expand Down

0 comments on commit 5762fe5

Please sign in to comment.