Skip to content

Commit

Permalink
metamorphic: use pointer receiver
Browse files Browse the repository at this point in the history
Update `(generator).randPrefixToWrite` to use a pointer receiver, to
keep it consistent with the other methods.
  • Loading branch information
nicktrav committed Aug 11, 2022
1 parent c06e079 commit c135b6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/metamorphic/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func (g *generator) prefixKeyRange() ([]byte, []byte) {

// randPrefixToWrite returns a prefix key (a key with no suffix) for a range key
// write operation.
func (g generator) randPrefixToWrite(newPrefix float64) []byte {
func (g *generator) randPrefixToWrite(newPrefix float64) []byte {
prefixes := g.keyManager.prefixes()
if len(prefixes) > 0 && g.rng.Float64() > newPrefix {
// Use an existing prefix.
Expand Down

0 comments on commit c135b6d

Please sign in to comment.