Skip to content

Commit

Permalink
Increased JSON payload size to 1MB
Browse files Browse the repository at this point in the history
  • Loading branch information
macterra committed Mar 7, 2024
1 parent 5bdcfba commit c203d58
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hyperswarm-monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async function mergeDb(db) {
console.log(`Adding to batch: ${did} ${db.hyperswarm[did][0].time}`);
batch.push(db.hyperswarm[did]);

if (batch.length >= 25) {
if (batch.length >= 100) {
try {
const imported = await gatekeeper.mergeBatch(batch);
if (imported > 0) {
Expand Down
6 changes: 6 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
git checkout release
git pull
git merge main
git push
git checkout main

2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ gatekeeper.start();
const app = express();

app.use(morgan('dev'));
app.use(express.json());
app.use(express.json({ limit: '1mb' })); // Sets the JSON payload limit to 1MB

app.get('/version', async (req, res) => {
try {
Expand Down

0 comments on commit c203d58

Please sign in to comment.