Remove _delay_wait_for_share_block_removal because it doesn't seem to exist
This commit is contained in:
parent
d6422801a2
commit
3a6322c6c6
@ -8,7 +8,6 @@ import platform
|
||||
|
||||
from flask import Response, Blueprint, request, send_from_directory, abort
|
||||
from flask import g
|
||||
from gevent import spawn
|
||||
import unpaddedbase32
|
||||
|
||||
from httpapi import apiutils
|
||||
@ -41,6 +40,7 @@ pub_key = onionrcrypto.pub_key.replace('=', '')
|
||||
SCRIPT_NAME = os.path.dirname(os.path.realpath(__file__)) + \
|
||||
f'/../../../{onionrvalues.SCRIPT_NAME}'
|
||||
|
||||
|
||||
class PrivateEndpoints:
|
||||
def __init__(self, client_api):
|
||||
private_endpoints_bp = Blueprint('privateendpoints', __name__)
|
||||
@ -75,7 +75,7 @@ class PrivateEndpoints:
|
||||
raise ValueError('block hash needs to be alpha numeric')
|
||||
name = reconstructhash.reconstruct_hash(name)
|
||||
if name in client_api.publicAPI.hideBlocks:
|
||||
spawn(_delay_wait_for_share_block_removal)
|
||||
#spawn(_delay_wait_for_share_block_removal)
|
||||
return Response("will be removed")
|
||||
else:
|
||||
client_api.publicAPI.hideBlocks.append(name)
|
||||
|
Loading…
Reference in New Issue
Block a user