From 382feab7d136b81bb13f6dd8c5dfffb142342fde Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Mon, 5 Aug 2024 10:44:33 +0200 Subject: [PATCH] chore(dsraft): fix few spelling errors Co-Authored-By: Thales Macedo Garitezi --- apps/emqx_ds_builtin_raft/src/emqx_ds_replication_layer.erl | 4 ++-- apps/emqx_durable_storage/src/emqx_ds_precondition.erl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/emqx_ds_builtin_raft/src/emqx_ds_replication_layer.erl b/apps/emqx_ds_builtin_raft/src/emqx_ds_replication_layer.erl index 8be3417cd..11c809dbd 100644 --- a/apps/emqx_ds_builtin_raft/src/emqx_ds_replication_layer.erl +++ b/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()) -> diff --git a/apps/emqx_durable_storage/src/emqx_ds_precondition.erl b/apps/emqx_durable_storage/src/emqx_ds_precondition.erl index 5f86d6c25..3002fcd08 100644 --- a/apps/emqx_durable_storage/src/emqx_ds_precondition.erl +++ b/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.