diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2015-10-12 17:19:55 +0300 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2015-10-12 17:19:55 +0300 |
| commit | dc72935607e5bf6c563556139ea6992899b8520a (patch) | |
| tree | c7d761b7e0d84c6f581576fdf230116e7718f6cf | |
| parent | e17a5e256c353e0a1f3a7239163cee0a16d955e3 (diff) | |
| download | rabbitmq-server-git-dc72935607e5bf6c563556139ea6992899b8520a.tar.gz | |
Move this constant closer to the only place it is used
| -rw-r--r-- | src/rabbit_mirror_queue_misc.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rabbit_mirror_queue_misc.erl b/src/rabbit_mirror_queue_misc.erl index 0d66cc700e..b8997faea5 100644 --- a/src/rabbit_mirror_queue_misc.erl +++ b/src/rabbit_mirror_queue_misc.erl @@ -46,8 +46,6 @@ {enables, recovery}]}). --define(DEFAULT_BATCH_SIZE, 4096). - %%---------------------------------------------------------------------------- -ifdef(use_specs). @@ -378,6 +376,8 @@ sync_batch_size(#amqqueue{} = Q) -> default_batch_size() end. +-define(DEFAULT_BATCH_SIZE, 4096). + default_batch_size() -> rabbit_misc:get_env(rabbit, mirroring_sync_batch_size, ?DEFAULT_BATCH_SIZE). |
