gpt4 book ai didi

node.js - Apache Thrift 警告 "No seqid to unset"(NodeJS)

转载 作者:太空宇宙 更新时间:2023-11-03 23:00:39 25 4
gpt4 key购买 nike

“[警告]没有要取消设置的序列号”出现此警告的原因是什么? (NodeJS)

最佳答案

对于版本 0.11.0,这是一个错误

TBinaryProtocol.prototype.writeMessageEnd = function() {
if (this._seqid) {
this._seqid = null;
} else {
log.warning('No seqid to unset');
}
};

this._seqid 为 0 时为 false。

现在已在分支 master 中修复

// from `if (this._seqid)` to `if (this._seqid !== null )`
TBinaryProtocol.prototype.writeMessageEnd = function() {
if (this._seqid !== null) {
this._seqid = null;
} else {
log.warning('No seqid to unset');
}
};

查看源文件:https://github.com/apache/thrift/blob/master/lib/nodejs/lib/thrift/binary_protocol.js

关于node.js - Apache Thrift 警告 "No seqid to unset"(NodeJS),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49058192/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com