diff --git a/packages/at_commons/lib/src/verb/sync_verb_builder.dart b/packages/at_commons/lib/src/verb/sync_verb_builder.dart index 7413ac46..7a7ce6ff 100644 --- a/packages/at_commons/lib/src/verb/sync_verb_builder.dart +++ b/packages/at_commons/lib/src/verb/sync_verb_builder.dart @@ -7,9 +7,8 @@ class SyncVerbBuilder implements VerbBuilder { /// if regex is set, then only keys matching the regex will be synced from server to client String? regex; - @Deprecated( - 'This field is not used anymore even though it is set in client. Remove this in next major release') - int limit = 10; + /// Number of entries to be fetched from commit log on the server in one batch + int limit = 25; @Deprecated( 'This field is not used anymore even though it is set in client. Remove this in next major release') diff --git a/packages/at_commons/test/sync_verb_builder_test.dart b/packages/at_commons/test/sync_verb_builder_test.dart index 72f64a4a..57c933aa 100644 --- a/packages/at_commons/test/sync_verb_builder_test.dart +++ b/packages/at_commons/test/sync_verb_builder_test.dart @@ -5,7 +5,7 @@ void main() { test('build sync verb command with defaults values', () { var syncVerbBuilder = SyncVerbBuilder()..commitId = -1; var command = syncVerbBuilder.buildCommand(); - expect(command, 'sync:from:-1:limit:10\n'); + expect(command, 'sync:from:-1:limit:25\n'); var regex = RegExp(VerbSyntax.syncFrom); command = command.replaceAll('\n', ''); assert(regex.hasMatch(command)); @@ -16,7 +16,7 @@ void main() { ..regex = '.buzz' ..commitId = -1; var command = syncVerbBuilder.buildCommand(); - expect(command, 'sync:from:-1:limit:10:.buzz\n'); + expect(command, 'sync:from:-1:limit:25:.buzz\n'); var regex = RegExp(VerbSyntax.syncFrom); command = command.replaceAll('\n', ''); assert(regex.hasMatch(command)); @@ -27,7 +27,7 @@ void main() { ..commitId = 3 ..regex = '.buzz'; var command = syncVerbBuilder.buildCommand(); - expect(command, 'sync:from:3:limit:10:.buzz\n'); + expect(command, 'sync:from:3:limit:25:.buzz\n'); var regex = RegExp(VerbSyntax.syncFrom); command = command.replaceAll('\n', ''); assert(regex.hasMatch(command));