Skip to content

Commit

Permalink
Cache result of /eth/v1/node/version.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdee committed Dec 4, 2023
1 parent 01b97b4 commit 8dc5e49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions http/nodeversion.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ func (s *Service) NodeVersion(ctx context.Context,
return nil, err
}

s.nodeVersion = data.Version

return &api.Response[string]{
Metadata: metadata,
Data: data.Version,
Expand Down

0 comments on commit 8dc5e49

Please sign in to comment.