Skip to content

Commit

Permalink
Merge pull request #455 from nervosnetwork/thewawar/fix-sqlite-start
Browse files Browse the repository at this point in the history
fix: Sqlite can not start
  • Loading branch information
doitian authored Apr 12, 2019
2 parents 9de1418 + a12a5fd commit f986b24
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion network/src/peer_store/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ pub type PooledConnection = r2d2::PooledConnection<SqliteConnectionManager>;
lazy_static! {
static ref OPEN_FLAGS: OpenFlags = OpenFlags::SQLITE_OPEN_READ_WRITE
| OpenFlags::SQLITE_OPEN_CREATE
| OpenFlags::SQLITE_OPEN_SHARED_CACHE
| OpenFlags::SQLITE_OPEN_NO_MUTEX;
}

Expand Down
2 changes: 1 addition & 1 deletion network/src/peer_store/sqlite/peer_store.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ pub(crate) const LAST_CONNECTED_TIMEOUT_SECS: u64 = 14 * 24 * 3600;
/// Clear banned list if the list reach this size
const BAN_LIST_CLEAR_EXPIRES_SIZE: usize = 1024;
/// SQLITE connection pool size
const DEFAULT_POOL_SIZE: u32 = 32;
const DEFAULT_POOL_SIZE: u32 = 64;
const DEFAULT_ADDRS: u32 = 3;

pub struct SqlitePeerStore {
Expand Down

0 comments on commit f986b24

Please sign in to comment.