Skip to content

Commit 8b57bfe

Browse files
authored
Merge pull request #53 from scalableminds/codespell
Fix some typos with codespell
2 parents bdbe114 + 2a4c2c9 commit 8b57bfe

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.codespellrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
# Ref: https://github.com/codespell-project/codespell#using-a-config-file
3+
skip = *.svg,*.sublime-workspace,*.log,.codespellrc,./target

src/main/scala/com/scalableminds/fossildb/db/StoreManager.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ class StoreManager(dataDir: Path, backupDir: Path, columnFamilies: List[String],
3434
private val backupInProgress = new AtomicBoolean(false)
3535
private val restoreInProgress = new AtomicBoolean(false)
3636

37-
private def failDuringRestore(): Unit = if (restoreInProgress.get) throw new Exception("Unavilable during restore-from-backup operation")
38-
private def failDuringBackup(): Unit = if (backupInProgress.get) throw new Exception("Unavilable during backup")
37+
private def failDuringRestore(): Unit = if (restoreInProgress.get) throw new Exception("Unavailable during restore-from-backup operation")
38+
private def failDuringBackup(): Unit = if (backupInProgress.get) throw new Exception("Unavailable during backup")
3939

4040

4141
def backup: Option[BackupInfo] = {

src/test/scala/com/scalableminds/fossildb/FossilDBSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ class FossilDBSuite extends AnyFlatSpec with BeforeAndAfterEach with TestHelpers
237237
assert(reply.keys(2) == "123458")
238238
}
239239

240-
"GetMultipleVersions" should "return all versions in decending order if called without limits" in {
240+
"GetMultipleVersions" should "return all versions in descending order if called without limits" in {
241241
client.put(PutRequest(collectionA, aKey, Some(0), testData1))
242242
client.put(PutRequest(collectionA, aKey, Some(1), testData2))
243243
client.put(PutRequest(collectionA, aKey, Some(2), testData3))

src/test/scala/com/scalableminds/fossildb/RocksOptionsSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class RocksOptionsSuite extends AnyFlatSpec with BeforeAndAfterEach with TestHel
4343
.setStatsDumpPeriodSec(100)
4444
val cfListRef: mutable.Buffer[ColumnFamilyDescriptor] = mutable.Buffer()
4545
val configOptions = new ConfigOptions()
46-
// if successful, the rocksdb writes the loaded options to a file that can then be retreived with loadLatestOptions
46+
// if successful, the rocksdb writes the loaded options to a file that can then be retrieved with loadLatestOptions
4747
// we test that that one now includes the value 700 from the file above, rather than the 100 specified as a default
4848
org.rocksdb.OptionsUtil.loadLatestOptions(configOptions, dataDir.toString, options, cfListRef.asJava)
4949
assert(options.statsDumpPeriodSec() == 700)

0 commit comments

Comments
 (0)