mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client: refactor Events, Info, RegistryLogin
Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Austin Vazquez <austin.vazquez@docker.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
c438b3fbbf
commit
e46058cbae
@@ -70,9 +70,9 @@ func CheckGoroutineCount(ctx context.Context, apiClient client.SystemAPIClient,
|
||||
}
|
||||
|
||||
func getGoroutineNumber(ctx context.Context, apiClient client.SystemAPIClient) (int, error) {
|
||||
info, err := apiClient.Info(ctx)
|
||||
result, err := apiClient.Info(ctx, client.InfoOptions{})
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
return info.NGoroutines, nil
|
||||
return result.Info.NGoroutines, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user