Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit be9e272

Browse files
committedDec 16, 2024
add comment to Reload Counter
1 parent 3279e78 commit be9e272

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed
 

‎internal/hotreload/hotreload.go

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,16 @@ import (
1616
)
1717

1818
var (
19-
oldRobotUser string
20-
oldRobotPassword string
19+
oldRobotUser string
20+
oldRobotPassword string
21+
// RobotReloadCounter gets incremented when the credentials get reloaded.
22+
// Mosty used for testing.
2123
RobotReloadCounter uint64
2224
robotMutex sync.Mutex
2325

24-
oldHcloudToken string
26+
oldHcloudToken string
27+
// HcloudTokenReloadCounter gets incremented when the credentials get reloaded.
28+
// Mosty used for testing.
2529
HcloudTokenReloadCounter uint64
2630
hcloudMutex sync.Mutex
2731
)

0 commit comments

Comments
 (0)
Please sign in to comment.