Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: new server.Stop() to close all server resources #1318

Merged
merged 3 commits into from
Jan 24, 2024

Conversation

miparnisari
Copy link
Member

@miparnisari miparnisari commented Jan 24, 2024

This is a follow-up of #1317.

Whether we use OpenFGA as a library or as a server, we need to provide an API to clean up Server resources.

@miparnisari miparnisari requested a review from a team as a code owner January 24, 2024 21:13
Copy link

codecov bot commented Jan 24, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (a4e94d5) 82.65% compared to head (a8445fe) 82.69%.

Files Patch % Lines
pkg/server/server.go 50.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1318      +/-   ##
==========================================
+ Coverage   82.65%   82.69%   +0.04%     
==========================================
  Files          84       84              
  Lines        9768     9775       +7     
==========================================
+ Hits         8073     8082       +9     
+ Misses       1340     1338       -2     
  Partials      355      355              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

pkg/server/server.go Outdated Show resolved Hide resolved
@miparnisari miparnisari changed the title feat: new server.Stop() to close all caches and to close the connecti… feat: new server.Stop() to close all server resources Jan 24, 2024
@jon-whit jon-whit merged commit 4f23096 into main Jan 24, 2024
12 of 14 checks passed
@jon-whit jon-whit deleted the graceful-server-stop branch January 24, 2024 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants