From bc1943449075f7b629b1de19c61f7e217ad395aa Mon Sep 17 00:00:00 2001 From: John Jones Date: Thu, 6 Apr 2017 09:55:26 -0500 Subject: [PATCH] setting Datastore on SessionContext structure --- core/null.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/null.c b/core/null.c index 8cea249..dfcebe1 100644 --- a/core/null.c +++ b/core/null.c @@ -50,6 +50,7 @@ void *ipfs_null_connection (void *ptr) struct SessionContext session; session.insecure_stream = libp2p_net_multistream_stream_new(connection_param->file_descriptor, connection_param->ip, connection_param->port); session.default_stream = session.insecure_stream; + session.datastore = connection_param->local_node->repo->config->datastore; libp2p_logger_log("null", LOGLEVEL_INFO, "Connection %d, count %d\n", connection_param->file_descriptor, *(connection_param->count));