Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #175 from pathephone/release/unnamed
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
negamaxi authored Jul 13, 2018
2 parents 8250c1f + f2da71e commit 35c547b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 18 deletions.
Binary file modified _banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 13 additions & 13 deletions _banner.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 6 additions & 2 deletions src/main/threads/ipfs.thread.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ const reducer = ({ type, payload }) => {
createThreadReducer(reducer)

process.on('disconnect', async () => {
const daemon = await ipfsDaemonPromise
daemon.stop()
try {
const daemon = await ipfsDaemonPromise
daemon.stop()
} catch (e) {
console.error(e)
}
})
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ import { eventChannel } from 'redux-saga'

import { IS_OFFLINE } from '#config'

import { ALBUMS_PUBLISH_INTERVAL, ALBUMS_APEARENCE_INTERVAL } from '~data/constants'
import { ALBUMS_PUBLISH_INTERVAL, ALBUMS_APPEARENCE_INTERVAL } from '~data/constants'

function getAlbumsCollectionSource (apis) {
const { findOutdatedAlbumsInCollection } = apis
return eventChannel(emit => {
const handleTick = async () => {
const period = new Date().getTime() - ALBUMS_APEARENCE_INTERVAL
const period = new Date().getTime() - ALBUMS_APPEARENCE_INTERVAL
const albums = await findOutdatedAlbumsInCollection(period)
albums.forEach(emit)
}
Expand Down
2 changes: 1 addition & 1 deletion src/shared/data/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const ROUTE_ADD_ALBUM = '/add-album'
export const ROUTE_DONATE = '/donate'
export const ROUTE_HOME = ROUTE_ALBUMS

export const ALBUMS_APEARENCE_INTERVAL = 60000 * 10
export const ALBUMS_APPEARENCE_INTERVAL = 60000 * 2
export const ALBUMS_PUBLISH_INTERVAL = 60000 * 1
export const CHECK_FOR_UPDATE_INTERVAL = 60000 * 30

Expand Down

0 comments on commit 35c547b

Please sign in to comment.