Parcourir la source

chore(dsraft): fix few spelling errors

Co-Authored-By: Thales Macedo Garitezi <thalesmg@gmail.com>
Andrew Mayorov il y a 1 an
Parent
commit
7b85faf12a

+ 2 - 2
apps/emqx_ds_builtin_raft/src/emqx_ds_replication_layer.erl

@@ -140,7 +140,7 @@
     }.
 
 %% Write batch.
-%% Instances of this type currently form the mojority of the Raft log.
+%% Instances of this type currently form the majority of the Raft log.
 -type batch() :: #{
     ?tag := ?BATCH,
     ?batch_operations := [emqx_ds:operation()],
@@ -281,7 +281,7 @@ store_batch_atomic(DB, Batch, _Opts) ->
         [] ->
             ok;
         [_ | _] ->
-            {error, unrecoverable, nonatomic_batch_spans_multiple_storages}
+            {error, unrecoverable, atomic_batch_spans_multiple_shards}
     end.
 
 -spec get_streams(emqx_ds:db(), emqx_ds:topic_filter(), emqx_ds:time()) ->

+ 1 - 1
apps/emqx_durable_storage/src/emqx_ds_precondition.erl

@@ -1,5 +1,5 @@
 %%--------------------------------------------------------------------
-%% Copyright (c) 20212024 EMQ Technologies Co., Ltd. All Rights Reserved.
+%% Copyright (c) 2024 EMQ Technologies Co., Ltd. All Rights Reserved.
 %%
 %% Licensed under the Apache License, Version 2.0 (the "License");
 %% you may not use this file except in compliance with the License.