Re: [go-nuts] Is there any way to produce etcd watch chan be closed

2022-03-27 Thread
Ok, thanks. Ian Lance Taylor 于2022年3月26日周六 02:45写道: > On Fri, Mar 25, 2022 at 11:41 AM 袁成若 wrote: > > > > I met a problem about etcd watch channel. seems that be closed, but i > can not reproduce it. > > > > like this: > > > > ``` &g

[go-nuts] Is there any way to produce etcd watch chan be closed

2022-03-25 Thread
I met a problem about etcd watch channel. seems that be closed, but i can not reproduce it. like this: ``` for { ach := etcdClientV3.Watch(context.Background(), "/test", clientv3.WithPrefix()) for { select { case wch := <- ach { fmt.Println(