Kexian Zhong
Kexian Zhong
Just remove the 'rb-readline' gem if you are on a linux like system. This may be the current solution for this problem.
`set synmaxcol=100` Make it much faster.
项目里用了 MonitorMixin 的 synchronize 来避免 access_token 的竞争。 **但只能避免线程间的竞争,如果用 Puma 开启了多个进程,是容易出现重复刷新 access_token 的问题。** 可以通过第三方存储的锁机制。例如,用Redis的写入锁 Redis.set('lock_key', 'refreshing', ex: 3, nx: true) https://github.com/Eric-Guo/wechat 这个项目中用了随机数检查过期时间的方式,但这种方式会有不稳定的结果。
I want to strip the title, as title may have leading whitespace character.
@moonavw The %{entry_name} will be appending with 's'. It generates something like "显示 订单s 1-20 共30" So the `%{entry_name}` should be removed too. Here is my version: ``` helpers: page_entries_info:...
It seems the output_logfile and logfile **did not** use **File.expand_path**, but the pid dir **did**. So it's more safe to always set the absolute path. ```ruby def output_logfile if log_output_syslog?...