Anton Lebedevich 13 лет назад
Родитель
Сommit
13e2b9325e
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/pgsql_sock.erl

+ 3 - 1
src/pgsql_sock.erl

@@ -55,7 +55,9 @@ handle_cast({connect, Host, Username, Password, Opts},
     %% TODO    Async   = proplists:get_value(async, Opts, undefined),
     setopts(State2, [{active, true}]),
     {noreply,
-     State2#state{on_message = fun(M, S) -> auth(Username, Password, M, S) end},
+     State2#state{on_message = fun(M, S) ->
+                                       auth(Username, Password, M, S)
+                               end},
      Timeout};
 
 handle_cast(cancel, State = #state{backend = {Pid, Key}}) ->