Tags: redis/go-redis-entraid
Tags
refactor(manager): small refactors around the manager and token logic (… …#10) * fix(manager): Improve channel closure handling - Updated IsClosed function to accurately check if a channel is closed without consuming data unless necessary. - Safely close the closedChan only if it is not already closed to avoid potential panics. * fix(manager): Add panic recovery in token manager goroutine - Implemented panic recovery in the Start method of entraidTokenManager to prevent crashes and ensure listener is notified of errors. * fix(token): Enhance token creation logic and documentation - Updated the New function to return nil if expiresOn is zero to prevent panic. - Added logic to set receivedAt to the current time and recalculate TTL if receivedAt is zero. - Improved documentation to clarify the responsibilities of the caller regarding token validity and behavior when parameters are zero. * chore(token): remove some unnecessary comments * test(manager): change test delta to 5ms
chore(deps): update dependencies (#5) * chore(examples): update dependencies Add release notes * chore(deps): Update package dependencies * chore(makefile): Add makefile for tests Add Makefile to reproduce the test commands used in the CI. A better approach for the future would be to use the exact makefile in the CI pipelines. * chore(deps): Update deps and go version It turns out that the x/crypto with the security fixes requires go 1.23 anyway.