Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

59 строки
1.6 KiB

4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
4 лет назад
  1. %% Copyright (c) 2017-Present Pivotal Software, Inc. All rights reserved.
  2. %%
  3. %% This package, Looking Glass, is double-licensed under the Mozilla
  4. %% Public License 1.1 ("MPL") and the Apache License version 2
  5. %% ("ASL"). For the MPL, please see LICENSE-MPL-RabbitMQ. For the ASL,
  6. %% please see LICENSE-APACHE2.
  7. %%
  8. %% This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND,
  9. %% either express or implied. See the LICENSE file for specific language governing
  10. %% rights and limitations of this software.
  11. %%
  12. %% If you have any questions regarding licensing, please contact us at
  13. %% info@rabbitmq.com.
  14. %% The purpose of this process is to be the target of messages
  15. %% sent by traced processes. The messages contain metadata that
  16. %% we want to log when we are tracing and later use when profiling
  17. %% the sending of messages. This process does not need them, it
  18. %% just needs to exist, and therefore it discards everything.
  19. -module(tpRabbitHole).
  20. -behaviour(gen_server).
  21. %% API.
  22. -export([start_link/0]).
  23. %% gen_server.
  24. -export([init/1]).
  25. -export([handle_call/3]).
  26. -export([handle_cast/2]).
  27. -export([handle_info/2]).
  28. -export([terminate/2]).
  29. -export([code_change/3]).
  30. %% API.
  31. -spec start_link() -> {ok, pid()}.
  32. start_link() ->
  33. gen_server:start_link({local, lg}, ?MODULE, [], []).
  34. %% gen_server.
  35. init([]) ->
  36. {ok, undefined}.
  37. handle_call(_Request, _From, State) ->
  38. {reply, ignored, State}.
  39. handle_cast(_Msg, State) ->
  40. {noreply, State}.
  41. handle_info(_Info, State) ->
  42. {noreply, State}.
  43. terminate(_Reason, _State) ->
  44. ok.
  45. code_change(_OldVsn, State, _Extra) ->
  46. {ok, State}.