Skip to content

Commit

Permalink
Introduce Redis IP
Browse files Browse the repository at this point in the history
  • Loading branch information
lucemans committed May 29, 2022
1 parent 1aeaf8f commit 70916d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ GITHUB_ID=
GITHUB_SECRET=
IPFS_IP=http://127.0.0.1:8080
IPFS_API=http://127.0.0.1:5001
REDIS_IP=127.0.0.1:6379
SIGNALFS_IP=http://0.0.0.0:8000
SIGNAL_MASTER=yoursecrethere
SIGNAL_HOST=localhost
Expand Down
4 changes: 3 additions & 1 deletion src/cache.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { createClient } from 'redis';

export const CACHE = createClient({});
export const CACHE = createClient({
url: process.env.REDIS_IP || '127.0.0.1:6379',
});

(async () => {
await CACHE.connect();
Expand Down
1 change: 1 addition & 0 deletions src/util/http/information_wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const informationWrap: <T extends H[], G, H>(
);
} else {
log.network(`❌ ${addressData}`);
log.network(data);
}
}
};
Expand Down

0 comments on commit 70916d9

Please sign in to comment.