Browse Source

queue format

Anton Lebedevich 13 years ago
parent
commit
7ec27b9d5d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/pgsql_sock.erl

+ 1 - 1
src/pgsql_sock.erl

@@ -212,7 +212,7 @@ send(#state{mod = Mod, sock = Sock}, Type, Data) ->
     Mod:send(Sock, pgsql_wire:encode(Type, Data)).
     Mod:send(Sock, pgsql_wire:encode(Type, Data)).
 
 
 notify(#state{queue = Q} = State, Message) ->
 notify(#state{queue = Q} = State, Message) ->
-    {_, From, Ref} = queue:get(Q),
+    {{From, Ref}, _} = queue:get(Q),
     From ! {Ref, Message}.
     From ! {Ref, Message}.
 
 
 notify_async(#state{async = Pid}, Msg) ->
 notify_async(#state{async = Pid}, Msg) ->