@@ -1019,7 +1019,7 @@ class Settings {
1019
1019
// / body of the document. With a 1MB output queue you can fit 50 ~20k
1020
1020
// / documents (50 is the (default) max number of operations a client
1021
1021
// / may perform before backing off.
1022
- std::atomic<size_t > max_send_queue_size{1024 * 1024 };
1022
+ std::atomic<size_t > max_send_queue_size{1_MiB };
1023
1023
1024
1024
// / The maximum size we want to try to set SO_SNDBUF to. For windows
1025
1025
// / the default is 1MB as there is no operating system tunable which
@@ -1028,9 +1028,9 @@ class Settings {
1028
1028
// / insane large number and use the operating systems max value.
1029
1029
std::atomic<uint32_t > max_so_sndbuf_size{
1030
1030
#ifdef WIN32
1031
- 1024 * 1024
1031
+ 1_MiB
1032
1032
#else
1033
- 256 * 1024 * 1024
1033
+ 256_MiB
1034
1034
#endif
1035
1035
};
1036
1036
@@ -1099,7 +1099,7 @@ class Settings {
1099
1099
std::atomic<std::size_t > max_concurrent_commands_per_connection{32 };
1100
1100
1101
1101
// The rate limit for Fusion extent migration, in bytes per second
1102
- std::atomic<size_t > fusion_migration_rate_limit{1024 * 1024 * 75 };
1102
+ std::atomic<size_t > fusion_migration_rate_limit{75_MiB };
1103
1103
1104
1104
/* *
1105
1105
* Note that it is not safe to add new listeners after we've spun up
@@ -1138,7 +1138,7 @@ class Settings {
1138
1138
// / Max document size is 20MB so by using 30MB we'll get the correct
1139
1139
// / E2BIG error message for connections going a bit bigger (and not
1140
1140
// / a quiet disconnect)
1141
- uint32_t max_packet_size{30 * 1024 * 1024 };
1141
+ uint32_t max_packet_size{30_MiB };
1142
1142
1143
1143
std::atomic<int > num_reader_threads{0 };
1144
1144
std::atomic<int > num_writer_threads{0 };
0 commit comments