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

refactor: move all valkey modules related declarations to module.h #1489

Merged
merged 3 commits into from
Jan 2, 2025

Conversation

rjd15372
Copy link
Contributor

In this commit we move all structures and functions declarations related to Valkey modules from server.h to the recently added module.h file.

This re-organization makes it easier for new contributers to find the valkey modules related code, as well as reducing the compilation times when changes are made to the modules code.

Signed-off-by: Ricardo Dias [email protected]

In this commit we move all structures and functions declarations related
to Valkey modules from `server.h` to the recently added `module.h` file.

This re-organization makes it easier for new contributers to find the
valkey modules related code, as well as reducing the compilation times
when changes are made to the modules code.

Signed-off-by: Ricardo Dias <[email protected]>
Copy link

codecov bot commented Dec 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 21 lines in your changes missing coverage. Please review.

Project coverage is 70.85%. Comparing base (9f4503c) to head (93a17f5).
Report is 2 commits behind head on unstable.

Files with missing lines Patch % Lines
src/module.c 0.00% 19 Missing ⚠️
src/config.c 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #1489      +/-   ##
============================================
- Coverage     70.86%   70.85%   -0.02%     
============================================
  Files           119      119              
  Lines         64859    64864       +5     
============================================
- Hits          45963    45958       -5     
- Misses        18896    18906      +10     
Files with missing lines Coverage Δ
src/acl.c 88.77% <ø> (ø)
src/aof.c 80.11% <ø> (ø)
src/blocked.c 91.88% <ø> (ø)
src/cluster.c 88.65% <ø> (ø)
src/cluster_legacy.c 86.79% <ø> (-0.10%) ⬇️
src/db.c 89.55% <ø> (ø)
src/debug.c 51.99% <ø> (ø)
src/defrag.c 88.85% <ø> (ø)
src/lazyfree.c 86.11% <ø> (ø)
src/networking.c 88.63% <ø> (+0.28%) ⬆️
... and 10 more

... and 10 files with indirect coverage changes

@madolson madolson requested a review from zuiderkwast December 28, 2024 06:16
Copy link
Contributor

@zuiderkwast zuiderkwast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Just some minor comments.

src/module.h Outdated Show resolved Hide resolved
src/module.c Outdated Show resolved Hide resolved
src/module.h Outdated Show resolved Hide resolved
@zuiderkwast zuiderkwast merged commit 8d764f2 into valkey-io:unstable Jan 2, 2025
48 checks passed
@zuiderkwast
Copy link
Contributor

Great, I merged so it doesn't block your next PR. :)

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.

2 participants