Skip to content

Conversation

@dohnto
Copy link
Contributor

@dohnto dohnto commented Apr 7, 2022

Make apiClientImpl.DoGetFallback more idiomatic and efficient:

  • Save result of args.Encode() operation as it might be used 2 times in
    the function and due to looping and sorting it might be heavy.
  • Follow line-of-sight practise and therefore simplify the code.
Make apiClientImpl.DoGetFallback more idiomatic and efficient: * Save result of args.Encode() operation as it might be used 2 times in the function and due to looping and sorting it might be heavy. * Follow line-of-sight practise and therefore simplify the code. Signed-off-by: Tomáš Dohnálek <dohnto@gmail.com>
@dohnto dohnto force-pushed the dohnto/line-of-sight branch from 4bf68a2 to 40e54a7 Compare April 7, 2022 07:18
Copy link
Member

@kakkoyun kakkoyun left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Thanks for the contribution.

I'll go ahead and merge it since we have tests for this method and there doesn't seem to any regressions present.

@kakkoyun kakkoyun merged commit 130da3b into prometheus:main Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants