Skip to content

Update jsm.go#1746

Open
allen-ping wants to merge 1 commit intonats-io:mainfrom
allen-ping:main
Open

Update jsm.go#1746
allen-ping wants to merge 1 commit intonats-io:mainfrom
allen-ping:main

Conversation

@allen-ping
Copy link
Copy Markdown

fix arm32 device NumDeleted value overflow

fix arm32 device NumDeleted value overflow
@piotrpio
Copy link
Copy Markdown
Collaborator

piotrpio commented Dec 4, 2024

Hello @SinTod, thank you for the contribution. You're correct about this being a bug, but I'm not sure we can merge this PR as this would be a breaking change. Also, this is the same struct as in nats-server, so if we were to introduce this breaking change at some point, we would need to do this in the server as well (we cannot have int on the server and uint in the client, what if the server starts sending e.g. -1 at some point - for whatever reason).

@allen-ping
Copy link
Copy Markdown
Author

hi @piotrpio If i change NumDeleted to int64?

@allen-ping
Copy link
Copy Markdown
Author

@piotrpio btw, can I erase this value from nats server ?

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