Skip to content

Commit 7db1bdb

Browse files
committed
Public Wrapper for '(c *StatsConnection) UpdateStats'
1 parent 7741972 commit 7db1bdb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/stats.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,11 @@ func (c *StatsConnection) disconnectClient() {
134134
}
135135
}
136136

137+
// Public wrapper for updating stats from patters
138+
func (c *StatsConnection) UpdateStats(statDir **adapter.StatDir, patterns ...string) error {
139+
return c.updateStats(statDir, patterns...)
140+
}
141+
137142
func (c *StatsConnection) updateStats(statDir **adapter.StatDir, patterns ...string) error {
138143
if statDir == nil {
139144
panic("statDir must not nil")

0 commit comments

Comments
 (0)