Skip to content

Commit 55255bb

Browse files
author
Simon Prickett
committed
Fixed flush on data loader.
1 parent d84d296 commit 55255bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/redislabs/university/RU102J/command/LoadCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void run(Bootstrap<?> bootstrap, Namespace namespace) throws Exception {
6969
DataLoader loader = new DataLoader(jedisPool);
7070
Boolean flush = namespace.get("flush");
7171
if (flush) {
72-
72+
loader.flush();
7373
}
7474
loader.load();
7575
SampleDataGenerator generator = new SampleDataGenerator(jedisPool);

0 commit comments

Comments
 (0)