From a9096dc04889782549b94d22574911f6bd726cb4 Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Thu, 15 Oct 2020 09:50:52 +0000 Subject: [PATCH] correct return type in storage setdata --- src/onionrstorage/setdata.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/onionrstorage/setdata.py b/src/onionrstorage/setdata.py index fb07ef9f..652b40f3 100644 --- a/src/onionrstorage/setdata.py +++ b/src/onionrstorage/setdata.py @@ -13,6 +13,7 @@ from onionrblocks import storagecounter from coredb import dbfiles from onionrutils import blockmetadata, bytesconverter from etc.onionrvalues import DATABASE_LOCK_TIMEOUT +from onionrtypes import BlockHash """ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -30,7 +31,7 @@ from etc.onionrvalues import DATABASE_LOCK_TIMEOUT storage_counter = storagecounter.StorageCounter() -def set_data(data) -> str: +def set_data(data) -> BlockHash: """Set the data assciated with a hash.""" data = data dataSize = sys.getsizeof(data)