thrasher-corp / gocryptotrader

A cryptocurrency trading bot and framework supporting multiple exchanges written in Golang.
MIT License
2.96k stars 792 forks source link

common/timedmutex: clean and improve #1486

Closed shazbert closed 4 months ago

shazbert commented 5 months ago

PR Description

Fixes # (issue)

Type of change

Please delete options that are not relevant and add an x in [] as item is complete.

How has this been tested

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration and also consider improving test coverage whilst working on a certain feature or package.

Checklist

codecov[bot] commented 4 months ago

Codecov Report

Attention: Patch coverage is 95.00000% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 35.87%. Comparing base (d679a76) to head (d15bf03). Report is 3 commits behind head on master.

:exclamation: Current head d15bf03 differs from pull request most recent head 150f9d4. Consider uploading reports for the commit 150f9d4 to get more accurate results

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1486/graphs/tree.svg?width=650&height=150&src=pr&token=41784B23TS&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp)](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1486?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp) ```diff @@ Coverage Diff @@ ## master #1486 +/- ## ========================================== - Coverage 35.89% 35.87% -0.02% ========================================== Files 411 411 Lines 177595 177528 -67 ========================================== - Hits 63752 63697 -55 - Misses 106058 106065 +7 + Partials 7785 7766 -19 ``` | [Files](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1486?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp) | Coverage Δ | | |---|---|---| | [common/timedmutex/timed\_mutex.go](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1486?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp#diff-Y29tbW9uL3RpbWVkbXV0ZXgvdGltZWRfbXV0ZXguZ28=) | `89.28% <95.00%> (-1.20%)` | :arrow_down: | ... and [28 files with indirect coverage changes](https://app.codecov.io/gh/thrasher-corp/gocryptotrader/pull/1486/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=thrasher-corp)