Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
dcapwell committed Jan 28, 2025
1 parent 7bc06a3 commit edc2c78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private ReplicationParams(Class<? extends AbstractReplicationStrategy> klass, Ma
}

@VisibleForTesting
public static ReplicationParams copy(AbstractReplicationStrategy strategy)
public static ReplicationParams fromStrategy(AbstractReplicationStrategy strategy)
{
return new ReplicationParams(strategy.getClass(), strategy.configOptions);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ public Gen<KeyspaceMetadata> build()
String name = nameGen.generate(rs);
KeyspaceMetadata.Kind kind = kindGen.generate(rs);
AbstractReplicationStrategy replication = replicationGen.generate(rs).withKeyspace(nameGen).build().generate(rs);
ReplicationParams replicationParams = ReplicationParams.copy(replication);
ReplicationParams replicationParams = ReplicationParams.fromStrategy(replication);
boolean durableWrites = durableWritesGen.generate(rs);
KeyspaceParams params = new KeyspaceParams(durableWrites, replicationParams);
Tables tables = Tables.none();
Expand Down

0 comments on commit edc2c78

Please sign in to comment.