-
go-zero doesn't seem to work well with swagger's plugins, such as uniformly returning objects {code,data,message}, which requires users to add fields everywhere in the.api file. Developers have raised…
-
For versions later than gozero 1.6.1, when the program is running normally, if etcd is turned off, this problem will occur when it is restarted after a few minutes.
{"@timestamp":"2024-05-22T00:40:…
-
建议GRPC服务端加入超时限制。
防止某些情况下导致服务端执行耗时阻塞任务时,客户端长时间链接导致资源浪费。
某些场景:如服务端在执行CURL任务时可能会有很久的延时(当然是开发者没有设置超时限制)。这样会导致很多客户端一直等待。
个人经历:某次开发时使用了gcahe中的GetOrSetFuncLock这个函数,由于此函数中又执行了CURL请求,最后导致了大批量并发链接等待。当时我个人原因没…
-
IMAGE SYNC
-
-
http://localhost:8080/frame/core-logger.html
-
I want to use the original redis client initialized by gozero, because a hook has been added, and the trace is in this hook
-
-
IMAGE SYNC
-
gozero 在升级1.5之后的 cors 包校验规则变化,导致以前的配置全部失效,造成跨域问题
1. The code is
```go
func isOriginAllowed(allows []string, origin string) bool {
origin = strings.ToLower(origin)
for _, allow := ran…