Heartbeat also using block_until_complete().

pull/2177/head
jMyles 2020-08-18 04:54:14 -07:00
parent 69c655a61e
commit 58c8f07dce
2 changed files with 2 additions and 1 deletions

View File

@ -141,6 +141,7 @@ policy = alicia.grant(bob=doctor_strange,
m=m,
n=n,
expiration=policy_end_datetime)
policy.publishing_mutex.block_until_complete()
print("Done!")
# For the demo, we need a way to share with Bob some additional info

View File

@ -14,7 +14,7 @@ GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with nucypher. If not, see <https://www.gnu.org/licenses/>.
"""
import math
import time
import random
from abc import ABC, abstractmethod