Moving polling interval to constant.

This commit is contained in:
David Jay
2017-02-22 15:11:50 -05:00
parent 6becb88b56
commit bb0b3f461a
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
import React, {PropTypes} from 'react';
import Comment from './Comment';
import {NEW_COMMENT_COUNT_POLL_INTERVAL} from 'coral-framework/constants/comments';
class Stream extends React.Component {
@@ -33,7 +34,7 @@ class Stream extends React.Component {
asset_id: asset.id,
limit: asset.comments.length,
sort: 'REVERSE_CHRONOLOGICAL'
}), 5000),
}), NEW_COMMENT_COUNT_POLL_INTERVAL),
});
}
@@ -1 +1,2 @@
export const ADDTL_COMMENTS_ON_LOAD_MORE = 10;
export const NEW_COMMENT_COUNT_POLL_INTERVAL = 20000;