Skip to content

Conversation

@philanton
Copy link

No description provided.


state := RPCState{
RequestID: req.Req.GetRequestId(),
Timestamp: req.Req.GetTimestamp(),

Choose a reason for hiding this comment

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

Shouldn't we set a new timestamp here, so that an external party can calculate how much time a response took place to calculate?

Copy link
Author

Choose a reason for hiding this comment

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

As I discussed with @mnaichuk timestamp will be later generated by server, so that is TBD


privateKey, err := crypto.GenerateKey()
require.NoError(t, err)
ss := signer.NewLocalSigner(privateKey)

Choose a reason for hiding this comment

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

Why do you shorten signer to ss?)

Copy link
Author

Choose a reason for hiding this comment

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

Because signer is the name of the package, and ss stands for stateSigner, I could instead use rename for package as signer_pkg

@mod mod merged commit 21b5560 into feat/nitro-rpc-app Mar 18, 2025
@mod mod deleted the feat/nitro-rpc-proto-impl branch March 18, 2025 13:09
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.

4 participants