Skip to content

Commit

Permalink
Merge pull request #1132 from wavesplatform/fix-formatting
Browse files Browse the repository at this point in the history
Formatting fixed
  • Loading branch information
alexeykiselev authored May 28, 2018
2 parents 6d6a824 + 8409886 commit 4e77894
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/scala/com/wavesplatform/database/LevelDBWriter.scala
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ class LevelDBWriter(writableDB: DB, fs: FunctionalitySettings) extends Caches wi
val newKeys = (
for {
(key, value) <- addressData.data
kdh = Keys.dataHistory(addressId, key)
isNew = rw.get(kdh).isEmpty
_ = rw.put(Keys.data(height, addressId, key), Some(value))
_ = expiredKeys ++= updateHistory(rw, kdh, threshold, Keys.data(_, addressId, key))
kdh = Keys.dataHistory(addressId, key)
isNew = rw.get(kdh).isEmpty
_ = rw.put(Keys.data(height, addressId, key), Some(value))
_ = expiredKeys ++= updateHistory(rw, kdh, threshold, Keys.data(_, addressId, key))
if isNew
} yield key
).toSeq
Expand Down

0 comments on commit 4e77894

Please sign in to comment.