gcggcg
gcggcg
**System info (please complete the following information):** - OS: Windows - Go Version: 1.17 - ants version: v2.1.1 问题描述: 当前项目中采用的是ants.NewPoolWithFunc()方式进行协程处理并发任务,同时设置了最大阻塞ants.WithMaxBlockingTasks(100). 项目开始运行没有问题,但是当任务执行达到最大阻塞值的时候,项目就停止运行了,直接报错: `too many goroutines blocked on submit or Nonblocking is...
**Please fill out the following system information before opening an issue:** - OS (e.g. Ubuntu 18.04): - Go version (e.g. Go 1.13): - gnet version (e.g. v1.0.0): **What is your...
从代码可以看出index在每次get获取连接的时候会自动加1,而且是uint32类型, 但是没有在请求后进行原子性的-1操作,会造成隐患,那就是index的值一直增加最终将会导致超出范围异常的局面。 还请你检查一下,是不是可以在conn.close的时候进行即使的-1操作会更加合理。
## GORM Playground Link `m := []UserTable{ {User: User{ Name: "tom1", Age: 12, Class: 10, }}, {User: User{ Name: "li1", Age: 22, Class: 10, }}, {User: User{ Name: "wang1", Age:...
## Describe the feature 希望后期可以支持集群见表的功能,当前自动建表AutoMigrate不支持配置ON CLUSTER,只能单机建表,所以目前只能用EXEC手动写sql实现。后期希望可以增加该功能,对于clickhouse比较常用。