Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
Ip2region
比较版本
b2ba5d58e48d7ba4b069592b93bcdb50862844c8...c5c24655eb63fc8c85fc272f685be40dbe043efa
I
Ip2region
项目概览
int
/
Ip2region
上一次同步 11 个月
通知
19
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
I
Ip2region
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
源分支
c5c24655eb63fc8c85fc272f685be40dbe043efa
选择Git版本
...
目标分支
b2ba5d58e48d7ba4b069592b93bcdb50862844c8
选择Git版本
比较
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> <<a href="mailto:shangshili@hotmail.com" title="shangshili@hotmail.com">shangshili@hotmail.com</a>></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
隐藏空白更改
内联
并排
Showing
2 changed file
with
3 addition
and
6 deletion
+3
-6
binding/java/src/main/java/org/lionsoul/ip2region/xdb/Header.java
...java/src/main/java/org/lionsoul/ip2region/xdb/Header.java
+0
-3
binding/nodejs/index.js
binding/nodejs/index.js
+3
-3
未找到文件。
binding/java/src/main/java/org/lionsoul/ip2region/xdb/Header.java
浏览文件 @
c5c24655
...
...
@@ -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
;
...
...
binding/nodejs/index.js
浏览文件 @
c5c24655
...
...
@@ -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
}
...
...