...
 
Commits (5)
    https://gitcode.net/int/ip2region/-/commit/2981da4d9c5887191cf66df7f730a8d50eea3024 fs.close不写回调函数时,在14.x及以上版本中报错 2022-10-13T14:04:04+08:00 cenguoping cenguoping@juan.com https://gitcode.net/int/ip2region/-/commit/6a1e63a75290063e5c7c52c57d3fd7e9e222be12 Merge pull request #263 from sir051223/master 2022-10-13T22:06:21+08:00 狮子的魂 chenxin619315@gmail.com add default callback for fs.close to compitable with the higher version https://gitcode.net/int/ip2region/-/commit/10ee80ba1f5151b43621d92f839e88eb0b0f65c0 java:移除无用导包 2022-10-16T11:36:56+00:00 lisb shangshili@hotmail.com Signed-off-by: <span data-trailer="Signed-off-by:"><a href="mailto:shangshili@hotmail.com" title="shangshili@hotmail.com"></a><a href="javascript:void(0)" class="avatar s16 avatar-inline identicon bg4" style="text-decoration: none">N</a><a href="mailto:shangshili@hotmail.com" title="shangshili@hotmail.com">lisb</a> &lt;<a href="mailto:shangshili@hotmail.com" title="shangshili@hotmail.com">shangshili@hotmail.com</a>&gt;</span> https://gitcode.net/int/ip2region/-/commit/0213d4f29ffa329ef39e5979fab68820adf70810 java:移除无用导包 2022-10-16T11:38:48+00:00 lisb shangshili@hotmail.com https://gitcode.net/int/ip2region/-/commit/c5c24655eb63fc8c85fc272f685be40dbe043efa !14 移除 Java Binding 无用的导包 2022-10-17T06:39:54+00:00 狮子的魂 chenxin619315@gmail.com Merge pull request !14 from lisb/master
......@@ -6,9 +6,6 @@
package org.lionsoul.ip2region.xdb;
import java.awt.image.SampleModel;
public class Header {
public final int version;
public final int indexPolicy;
......
......@@ -122,7 +122,7 @@ class Searcher {
}
}
if (fd) {
fs.close(fd)
fs.close(fd,function(){})
}
const diff = process.hrtime(startTime)
......@@ -178,7 +178,7 @@ const loadVectorIndexFromFile = dbPath => {
const fd = fs.openSync(dbPath, 'r')
const buffer = Buffer.alloc(VectorIndexLength)
fs.readSync(fd, buffer, 0, VectorIndexLength, 256)
fs.close(fd)
fs.close(fd,function(){})
return buffer
}
......@@ -187,7 +187,7 @@ const loadContentFromFile = dbPath => {
const buffer = Buffer.alloc(stats.size)
const fd = fs.openSync(dbPath, 'r')
fs.readSync(fd, buffer, 0, stats.size, 0)
fs.close(fd)
fs.close(fd,function(){})
return buffer
}
......