Skip to content

Commit 96634c5

Browse files
author
Aurélien Richez
committed
fix some warnings
1 parent c2636fd commit 96634c5

File tree

7 files changed

+6
-13
lines changed

7 files changed

+6
-13
lines changed

src/main/scala/io/iohk/ethereum/blockchain/sync/fast/FastSync.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ class FastSync(
943943
}
944944

945945
def assignBlockchainWork(peerWithInfo: PeerWithInfo): Unit = {
946-
val PeerWithInfo(peer, peerInfo) = peerWithInfo
946+
val PeerWithInfo(peer, _) = peerWithInfo
947947
log.debug(s"Assigning blockchain work for peer [{}]", peer.id.value)
948948
if (syncState.receiptsQueue.nonEmpty) {
949949
requestReceipts(peer)

src/main/scala/io/iohk/ethereum/db/storage/AppStateStorage.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,11 @@ import akka.util.ByteString
66

77
import scala.collection.immutable.ArraySeq
88

9-
import boopickle.Default.Unpickle
10-
import boopickle.DefaultBasic._
11-
import boopickle.Pickler
12-
139
import io.iohk.ethereum.db.dataSource.DataSource
1410
import io.iohk.ethereum.db.dataSource.DataSourceBatchUpdate
1511
import io.iohk.ethereum.db.storage.AppStateStorage._
1612
import io.iohk.ethereum.domain.appstate.BestBlockInfo
17-
import io.iohk.ethereum.utils.ByteUtils.byteSequenceToBuffer
18-
import io.iohk.ethereum.utils.ByteUtils.compactPickledBytes
1913
import io.iohk.ethereum.utils.Hex
20-
import io.iohk.ethereum.utils.Picklers._
2114

2215
/** This class is used to store app state variables
2316
* Key: see AppStateStorage.Keys

src/main/scala/io/iohk/ethereum/domain/BlockchainWriter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class BlockchainWriter(
5151

5252
// not transactional part
5353
// the best blocks data will be persisted only when the cache will be persisted
54-
stateStorage.onBlockSave(block.header.number, appStateStorage.getBestBlockNumber())(persistBestBlocksData)
54+
stateStorage.onBlockSave(block.header.number, appStateStorage.getBestBlockNumber())(persistBestBlocksData _)
5555
}
5656

5757
def storeReceipts(blockHash: ByteString, receipts: Seq[Receipt]): DataSourceBatchUpdate =

src/test/scala/io/iohk/ethereum/jsonrpc/EthBlocksServiceSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ class EthBlocksServiceSpec
412412
)
413413
}
414414

415-
class TestSetup(implicit system: ActorSystem) extends MockFactory with EphemBlockchainTestSetup {
415+
class TestSetup() extends MockFactory with EphemBlockchainTestSetup {
416416
val blockGenerator: PoWBlockGenerator = mock[PoWBlockGenerator]
417417
val appStateStorage: AppStateStorage = mock[AppStateStorage]
418418

src/test/scala/io/iohk/ethereum/jsonrpc/EthProofServiceSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ class EthProofServiceSpec
214214
)
215215
}
216216

217-
class TestSetup(implicit system: ActorSystem) extends MockFactory with EphemBlockchainTestSetup with ApisBuilder {
217+
class TestSetup() extends MockFactory with EphemBlockchainTestSetup with ApisBuilder {
218218

219219
val blockGenerator: PoWBlockGenerator = mock[PoWBlockGenerator]
220220
val address: Address = Address(ByteString(Hex.decode("abbb6bebfa05aa13e908eaa492bd7a8343760477")))

src/test/scala/io/iohk/ethereum/jsonrpc/EthUserServiceSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class EthUserServiceSpec
139139
response.runSyncUnsafe() shouldEqual Right(GetTransactionCountResponse(BigInt(999)))
140140
}
141141

142-
class TestSetup(implicit system: ActorSystem) extends MockFactory with EphemBlockchainTestSetup {
142+
class TestSetup() extends MockFactory with EphemBlockchainTestSetup {
143143
lazy val ethUserService = new EthUserService(
144144
blockchain,
145145
blockchainReader,

src/test/scala/io/iohk/ethereum/transactions/LegacyTransactionHistoryServiceSpec.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class LegacyTransactionHistoryServiceSpec
160160
)
161161

162162
def makeReceipts(block: Block): Seq[Receipt] =
163-
block.body.transactionList.map(tx => Receipt(HashOutcome(block.hash), BigInt(21000), ByteString("foo"), Nil))
163+
block.body.transactionList.map(_ => Receipt(HashOutcome(block.hash), BigInt(21000), ByteString("foo"), Nil))
164164

165165
for {
166166
_ <- Task {

0 commit comments

Comments
 (0)