Commit 1fd8ba0
authored
Minor race prevention: do not mutate callers' retry policy (#1413)
Concurrently calling `workflow.WithActivityOptions` with a shared retry policy instance that does not set a backoff coefficient can trigger a race because this function mutated it unnecessarily.
The fix is easy: just don't do that :) There's no benefit to mutating it, and many downsides.1 parent 2bceb13 commit 1fd8ba0
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1849 | 1849 | | |
1850 | 1850 | | |
1851 | 1851 | | |
1852 | | - | |
1853 | | - | |
1854 | | - | |
1855 | 1852 | | |
1856 | 1853 | | |
1857 | 1854 | | |
| |||
1860 | 1857 | | |
1861 | 1858 | | |
1862 | 1859 | | |
| 1860 | + | |
| 1861 | + | |
| 1862 | + | |
1863 | 1863 | | |
1864 | 1864 | | |
0 commit comments