|
|
@ -17,7 +17,7 @@ const UNAUTHENTICATED_CALLS = {
|
|
|
|
GET_FILE_SIZE: Pinning.getFileSize,
|
|
|
|
GET_FILE_SIZE: Pinning.getFileSize,
|
|
|
|
GET_MULTIPLE_FILE_SIZE: Pinning.getMultipleFileSize,
|
|
|
|
GET_MULTIPLE_FILE_SIZE: Pinning.getMultipleFileSize,
|
|
|
|
GET_DELETED_PADS: Pinning.getDeletedPads,
|
|
|
|
GET_DELETED_PADS: Pinning.getDeletedPads,
|
|
|
|
IS_CHANNEL_PINNED: Pinning.isChannelPinned,
|
|
|
|
IS_CHANNEL_PINNED: Pinning.isChannelPinned, // FIXME drop this RPC
|
|
|
|
IS_NEW_CHANNEL: Channel.isNewChannel,
|
|
|
|
IS_NEW_CHANNEL: Channel.isNewChannel,
|
|
|
|
WRITE_PRIVATE_MESSAGE: Channel.writePrivateMessage,
|
|
|
|
WRITE_PRIVATE_MESSAGE: Channel.writePrivateMessage,
|
|
|
|
GET_METADATA: Metadata.getMetadata,
|
|
|
|
GET_METADATA: Metadata.getMetadata,
|
|
|
@ -198,8 +198,6 @@ RPC.create = function (Env, cb) {
|
|
|
|
updateLimitDaily();
|
|
|
|
updateLimitDaily();
|
|
|
|
Env.intervals.dailyLimitUpdate = setInterval(updateLimitDaily, 24*3600*1000);
|
|
|
|
Env.intervals.dailyLimitUpdate = setInterval(updateLimitDaily, 24*3600*1000);
|
|
|
|
|
|
|
|
|
|
|
|
//Pinning.loadChannelPins(Env); // XXX
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// expire old sessions once per minute
|
|
|
|
// expire old sessions once per minute
|
|
|
|
Env.intervals.sessionExpirationInterval = setInterval(function () {
|
|
|
|
Env.intervals.sessionExpirationInterval = setInterval(function () {
|
|
|
|
Core.expireSessions(Sessions);
|
|
|
|
Core.expireSessions(Sessions);
|
|
|
|