Close nns resolver after use #324

Closed
opened 2024-02-27 12:57:55 +00:00 by dkirillov · 0 comments
Member

Currently we don't close nns resolver. So after app startup we have 68 goroutine but can reduce this count to 58.

We don't leak, but it would be nice to close resources that aren't used anymore.

So at leas we have to add defer nns.Close() here. But probably we have some other places.

Currently we don't close nns resolver. So after app startup we have 68 goroutine but can reduce this count to 58. We don't leak, but it would be nice to close resources that aren't used anymore. So at leas we have to add `defer nns.Close()` [here](https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/src/commit/391fc9cbe3c95b26bd5dc684a9c09bed0a6e6865/internal/frostfs/util/util.go#L31). But probably we have some other places.
mbiryukova self-assigned this 2024-03-01 13:09:26 +00:00
alexvanin added this to the v0.29.0 milestone 2024-05-27 10:03:47 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-s3-gw#324
No description provided.