From 8072ef43f45fd62a7f6482758cac2f91cadac650 Mon Sep 17 00:00:00 2001 From: Sahil Sarwar Date: Wed, 28 Aug 2024 13:29:12 +0530 Subject: [PATCH] changed constants --- conf/shard-conf.json | 20 ++++++++++---------- utils/constants.go | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/conf/shard-conf.json b/conf/shard-conf.json index 78b7d38..fa15fb7 100644 --- a/conf/shard-conf.json +++ b/conf/shard-conf.json @@ -2,24 +2,24 @@ "no_of_shards": 2, "shards": [ { - "snapshot_path":"/home/sahilsarwar/Desktop/open-source/kv/snapshot/snapshot1.txt", + "snapshot_path":"/home/sahilsarwar/projects/kv/snapshot/snapshot1.txt", "nodes": { - "master_conf_path": "/home/sahilsarwar/Desktop/open-source/kv/conf/kv.conf", + "master_conf_path": "/home/sahilsarwar/projects/kv/conf/kv.conf", "slaves_conf_path": [ - "/home/sahilsarwar/Desktop/open-source/kv/conf/slave1.conf", - "/home/sahilsarwar/Desktop/open-source/kv/conf/slave2.conf", - "/home/sahilsarwar/Desktop/open-source/kv/conf/slave3.conf" + "/home/sahilsarwar/projects/kv/conf/slave1.conf", + "/home/sahilsarwar/projects/kv/conf/slave2.conf", + "/home/sahilsarwar/projects/kv/conf/slave3.conf" ] } }, { - "snapshot_path":"/home/sahilsarwar/Desktop/open-source/kv/snapshot/snapshot2.txt", + "snapshot_path":"/home/sahilsarwar/projects/kv/snapshot/snapshot2.txt", "nodes": { - "master_conf_path": "/home/sahilsarwar/Desktop/open-source/kv/conf/kv-1.conf", + "master_conf_path": "/home/sahilsarwar/projects/kv/conf/kv-1.conf", "slaves_conf_path": [ - "/home/sahilsarwar/Desktop/open-source/kv/conf/slave11.conf", - "/home/sahilsarwar/Desktop/open-source/kv/conf/slave21.conf", - "/home/sahilsarwar/Desktop/open-source/kv/conf/slave31.conf" + "/home/sahilsarwar/projects/kv/conf/slave11.conf", + "/home/sahilsarwar/projects/kv/conf/slave21.conf", + "/home/sahilsarwar/projects/kv/conf/slave31.conf" ] } } diff --git a/utils/constants.go b/utils/constants.go index 61ee8dc..5e9394e 100644 --- a/utils/constants.go +++ b/utils/constants.go @@ -22,8 +22,8 @@ const ( CLEANUP_DURATION = time.Duration(1 * time.Minute) TRANSACTIONAL = 0 ACTIVE = 1 - SNAPSHOT_DIRECTORY = "/home/sahilsarwar/Desktop/open-source/kv/snapshot/" - CONF_DIRECTORY = "/home/sahilsarwar/Desktop/open-source/kv/conf/" + SNAPSHOT_DIRECTORY = "/home/sahilsarwar/projects/kv/snapshot/" + CONF_DIRECTORY = "/home/sahilsarwar/projects/kv/conf/" PUB_SUB = 2 SUBSCRIBE = "SUBSCRIBE" PUBLISH = "PUBLISH"