Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2 from terass-inc/add-lock
Browse files Browse the repository at this point in the history
LOCKファイル対応
  • Loading branch information
koolii authored Mar 10, 2022
2 parents 9e004f4 + 0b28573 commit 0259c44
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ const leveldown = require('leveldown');
// 住所から緯度経度付き場所型を返す
class EnrichmentAddress {
constructor() {
const path = __dirname + "/db/LOCK";
if (fs.existsSync(path)) {
fs.unlinkSync(path);
}
this.db = levelup(leveldown(__dirname + "/db"));
}
disconnect() {
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "imi-enrichment-address",
"version": "2.0.0",
"description": "IMI 住所型正規化パッケージ",
"version": "2.0.1",
"description": "IMI 住所型正規化パッケージ(並列対応)",
"main": "main.js",
"scripts": {
"test": "mocha",
Expand Down

0 comments on commit 0259c44

Please sign in to comment.