mirror of
https://github.com/corda/corda.git
synced 2025-01-06 13:08:46 +00:00
Minor: suppress deprecation warning in CordaRPCOpsImpl
This commit is contained in:
parent
8627a7dbbe
commit
12de4f46b1
@ -103,6 +103,7 @@ class CordaRPCOpsImpl(
|
|||||||
override fun attachmentExists(id: SecureHash) = services.storageService.attachments.openAttachment(id) != null
|
override fun attachmentExists(id: SecureHash) = services.storageService.attachments.openAttachment(id) != null
|
||||||
override fun uploadAttachment(jar: InputStream) = services.storageService.attachments.importAttachment(jar)
|
override fun uploadAttachment(jar: InputStream) = services.storageService.attachments.importAttachment(jar)
|
||||||
override fun currentNodeTime(): Instant = Instant.now(services.clock)
|
override fun currentNodeTime(): Instant = Instant.now(services.clock)
|
||||||
|
@Suppress("OverridingDeprecatedMember", "DEPRECATION")
|
||||||
override fun uploadFile(dataType: String, name: String?, file: InputStream): String {
|
override fun uploadFile(dataType: String, name: String?, file: InputStream): String {
|
||||||
val acceptor = services.storageService.uploaders.firstOrNull { it.accepts(dataType) }
|
val acceptor = services.storageService.uploaders.firstOrNull { it.accepts(dataType) }
|
||||||
return databaseTransaction(database) {
|
return databaseTransaction(database) {
|
||||||
|
Loading…
Reference in New Issue
Block a user