Skip to content

Commit

Permalink
Updated Readme.md with Cassandra configuration
Browse files Browse the repository at this point in the history
The table name needs to be mentioned in the Configuration builder for the cassandra configuration to work properly.
  • Loading branch information
faizanzaver authored Nov 19, 2022
1 parent 9b64b43 commit 77fb3bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ import net.javacrumbs.shedlock.provider.cassandra.CassandraLockProvider.Configur

@Bean
public CassandraLockProvider lockProvider(CqlSession cqlSession) {
return new CassandraLockProvider(Configuration.builder().withCqlSession(cqlSession).build());
return new CassandraLockProvider(Configuration.builder().withCqlSession(cqlSession).withTableName("lock").build());
}
```

Expand Down

0 comments on commit 77fb3bc

Please sign in to comment.