turbot / steampipe-plugin-github

Use SQL to instantly query repositories, users, gists and more from GitHub. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/github
Apache License 2.0
74 stars 30 forks source link

Update plugin to use DefaultRetryConfig #319

Closed graza-io closed 1 year ago

graza-io commented 1 year ago

Is your feature request related to a problem? Please describe. Currently each table has code to use the plugin.RetryHydrate function with a retryConfig that determines if the calls should retried in event of a failure.

This results in a lot of duplicated code, especially when we're using a centralised retryConfig

Describe the solution you'd like Update the plugin to utilise the DefaultRetryConfig, this can use the existing retryConfig but will apply it as a default across the tables rather than requiring the duplicated code.

Describe alternatives you've considered n/a

Additional context n/a