Skip to content

Commit

Permalink
WIP (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
lexmag committed May 15, 2017
1 parent 0e2a65a commit df25b14
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions lib/xandra/protocol.ex
@@ -1,5 +1,12 @@
defmodule Xandra.Protocol do
@moduledoc false
use Bitwise

alias Xandra.{Batch, Error, Frame, Prepared, Page, Simple, TypeParser}
alias Xandra.Cluster.StatusChange

# We need these two macros to make
# possible a single match context.

defmacrop decode_string({:<-, _, [value, buffer]}) do
quote do
Expand All @@ -21,11 +28,6 @@ defmodule Xandra.Protocol do
end
end

use Bitwise

alias Xandra.{Batch, Error, Frame, Prepared, Page, Simple, TypeParser}
alias Xandra.Cluster.StatusChange

@spec encode_request(Frame.t(kind), term, Keyword.t) :: Frame.t(kind) when kind: var
def encode_request(frame, params, options \\ [])

Expand Down

0 comments on commit df25b14

Please sign in to comment.