chore: behavior -> behaviour

This commit is contained in:
ieQu1 2023-05-15 11:39:48 +02:00
parent 62c27677b2
commit e7f773b6ae
5 changed files with 11 additions and 11 deletions

View File

@ -26,7 +26,7 @@
-include("bpapi.hrl").
%%================================================================================
%% behavior callbacks
%% behaviour callbacks
%%================================================================================
introduced_in() ->

View File

@ -35,7 +35,7 @@
%%================================================================================
%%================================================================================
%% behavior callbacks
%% behaviour callbacks
%%================================================================================
%%================================================================================

View File

@ -3,7 +3,7 @@
%%--------------------------------------------------------------------
-module(emqx_replay_local_store).
-behavior(gen_server).
-behaviour(gen_server).
%% API:
-export([start_link/1]).
@ -15,7 +15,7 @@
-export([preserve_iterator/2, restore_iterator/2, discard_iterator/2]).
%% behavior callbacks:
%% behaviour callbacks:
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2]).
-export_type([cf_refs/0, gen_id/0, db_write_options/0, state/0, iterator/0]).
@ -156,7 +156,7 @@ discard_iterator(Shard, ReplayID) ->
iterator_delete(Shard, ReplayID).
%%================================================================================
%% behavior callbacks
%% behaviour callbacks
%%================================================================================
init([Shard]) ->

View File

@ -3,12 +3,12 @@
%%--------------------------------------------------------------------
-module(emqx_replay_local_store_sup).
-behavior(supervisor).
-behaviour(supervisor).
%% API:
-export([start_link/0, start_shard/1, stop_shard/1]).
%% behavior callbacks:
%% behaviour callbacks:
-export([init/1]).
%%================================================================================
@ -35,7 +35,7 @@ stop_shard(Shard) ->
ok = supervisor:delete_child(?SUP, Shard).
%%================================================================================
%% behavior callbacks
%% behaviour callbacks
%%================================================================================
init([]) ->

View File

@ -3,12 +3,12 @@
%%--------------------------------------------------------------------
-module(emqx_replay_sup).
-behavior(supervisor).
-behaviour(supervisor).
%% API:
-export([start_link/0]).
%% behavior callbacks:
%% behaviour callbacks:
-export([init/1]).
%%================================================================================
@ -26,7 +26,7 @@ start_link() ->
supervisor:start_link({local, ?SUP}, ?MODULE, []).
%%================================================================================
%% behavior callbacks
%% behaviour callbacks
%%================================================================================
init([]) ->