Skip to content

Instantly share code, notes, and snippets.

@taichino
Created February 28, 2017 21:28
Show Gist options
  • Save taichino/6c023524bdd4df14b1623b53cf0c5f82 to your computer and use it in GitHub Desktop.
Save taichino/6c023524bdd4df14b1623b53cf0c5f82 to your computer and use it in GitHub Desktop.
for _ in [0...Globals.UPDATE_REPEAT] {
SRKTransaction.transaction({
self.commit.message = randomString(length: self.commit.message.characters.count)
self.commit.commit() // this happened to be confusing :P (commit object is committing the change)
}, withRollback: {})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment