Skip to content

Commit 2609544

Browse files
shinae-wooak-dhananjay
authored andcommitted
Public Wrapper for '(c *StatsConnection) UpdateStats'
1 parent 98b8af5 commit 2609544

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
@@ -204,6 +204,11 @@ func (c *StatsConnection) monitorSocket() {
204204
}
205205
}
206206

207+
// Public wrapper for updating stats from patters
208+
func (c *StatsConnection) UpdateStats(statDir **adapter.StatDir, patterns ...string) error {
209+
return c.updateStats(statDir, patterns...)
210+
}
211+
207212
func (c *StatsConnection) updateStats(statDir **adapter.StatDir, patterns ...string) error {
208213
if statDir == nil {
209214
panic("statDir must not nil")

0 commit comments

Comments
 (0)