fixed typo

This commit is contained in:
Alex Haynes 2019-04-21 13:45:18 -04:00
parent 9c5cd05042
commit 73ce3461e2

View File

@ -219,7 +219,7 @@ class KademliaServer:
log.info("Loading state from %s", fname)
with open(fname, 'rb') as file:
data = pickle.load(file)
svr = Server(data['ksize'], data['alpha'], data['id'])
svr = KademliaServer(data['ksize'], data['alpha'], data['id'])
if data['neighbors']:
svr.bootstrap(data['neighbors'])
return svr