Skip to content

refactor: encapsulate struct fields and optimize network buffers#4

Merged
vkaylee merged 3 commits into
masterfrom
fix/technical-debt-paydown
Jun 21, 2026
Merged

refactor: encapsulate struct fields and optimize network buffers#4
vkaylee merged 3 commits into
masterfrom
fix/technical-debt-paydown

Conversation

@vkaylee

@vkaylee vkaylee commented Jun 21, 2026

Copy link
Copy Markdown
Owner

refactor: encapsulate struct fields and optimize network buffers

  • Encapsulate User, Attendance, Finger, and ZKPacket fields to pub(crate)
  • Add public getters and constructors for encapsulated structs
  • Optimize TCP read calls using BufReader to prevent double syscalls
  • Configure UDP receive buffer size to 2MB to prevent packet loss
  • Refactor all unit and integration tests to use new getters and constructors

Lee added 3 commits June 21, 2026 22:25
- Encapsulate User, Attendance, Finger, and ZKPacket fields to pub(crate)
- Add public getters and constructors for encapsulated structs
- Optimize TCP read calls using BufReader to prevent double syscalls
- Configure UDP receive buffer size to 2MB to prevent packet loss
- Refactor all unit and integration tests to use new getters and constructors
@vkaylee vkaylee merged commit 8f44043 into master Jun 21, 2026
1 check passed
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.

1 participant