Graceful shutdown blocks on running proxy handler connections (#2789)

This commit is contained in:
Todd authored and GitHub committed 2023-01-17 08:54:01 -08:00
1 parent a437bdae0a
commit bc409bc7d4
9 files changed
+129 -28

No files matched your search

+10
View File
@@ -24,6 +24,16 @@ func (w WorkerList) Addresses() []string {
return ret
}
// PublicIds converts the slice of workers to a slice of public ids of those
// workers.
func (w WorkerList) PublicIds() []string {
ret := make([]string, 0, len(w))
for _, worker := range w {
ret = append(ret, worker.GetPublicId())
}
return ret
}
// workerInfos converts the slice of workers to a slice of their workerInfo protos
func (w WorkerList) WorkerInfos() []*pb.WorkerInfo {
ret := make([]*pb.WorkerInfo, 0, len(w))