Skip to content

refactor: Reduce nesting in clients->source->sync#483

Merged
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
erezrokah:refactor/reduce_nesting_v2
Dec 24, 2022
Merged

refactor: Reduce nesting in clients->source->sync#483
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
erezrokah:refactor/reduce_nesting_v2

Conversation

@erezrokah
Copy link
Copy Markdown
Member

Summary

Similar to #463
See docs https://grpc.io/docs/languages/go/basics/#client-side-streaming-rpc for recommended pattern


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 11, 2022

⏱️ Benchmark results

  • DefaultConcurrency-2 resources/s: 11,489
  • Glob-2 ns/op: 146.2
  • TablesWithChildrenDefaultConcurrency-2 resources/s: 31,834
  • BufferedScanner-2 ns/op: 10.01
  • LogReader-2 ns/op: 30.52

Copy link
Copy Markdown
Contributor

@candiduslynx candiduslynx left a comment

Choose a reason for hiding this comment

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

I'd rather leave it go-way, so that we check for a specific error only if the err is not nil

@kodiakhq kodiakhq bot merged commit b47c8ed into cloudquery:main Dec 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants