Ran Joe

Results 28 comments of Ran Joe

> I'm confused with `short_version`(`CARGO_PKG_VERSION`) and `version`(`${commit_short}-${branch}`). In fact, `version` is some kind of "short" version. Mabey it's a bug. When calling the `log_version` function, pass the return value of...

> and suspect the incorrectness was origin from its usage of "git2" @MichaelScofield Maybe not. Disabling git2 in shadow-rs also has the same problem: ```toml #before: shadow-rs = "0.31" #after:...

> It will be clearer if we use the raw git info as the metric label, for example, `branch` and `commit` Got it!

> git branch --remote --contains | sed "s|[[:space:]]*origin/||" You also need to filter out HEAD: `git branch --remote --contains | sed "s|[[:space:]]*origin/||"|grep -v "HEAD"`. Should this be supported by shadow-rs?

机器上执行下面命令看看输出结果是否正常: ```bash host `hostname` ```

看着挺奇怪的,可能是机器哪儿的配置不对。brpc是调用系统的接口获取hostname后解析ip: 1. 可能hostname配置了多个ip地址,brpc只会选择第1个返回。 1. 可以考虑手动将真实的ip写到`/etc/hosts`文件里。

I want to have a try for PostgreSQL.

@killme2008 I have a problem. Different from mysql crate, no type of PostgreSQL error codes found in pgwire crate. So in order to map StatusCode, I need to define enum...