mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 11:54:01 +03:00
Rename metrics
This commit is contained in:
+4
-6
@@ -4,17 +4,15 @@ import "sync"
|
||||
|
||||
var streamInfoPool = sync.Pool{
|
||||
New: func() interface{} {
|
||||
return &streamInfo{
|
||||
tags: map[string]string{},
|
||||
}
|
||||
return streamInfo{}
|
||||
},
|
||||
}
|
||||
|
||||
func acquireStreamInfo() *streamInfo {
|
||||
return streamInfoPool.Get().(*streamInfo)
|
||||
func acquireStreamInfo() streamInfo {
|
||||
return streamInfoPool.Get().(streamInfo)
|
||||
}
|
||||
|
||||
func releaseStreamInfo(info *streamInfo) {
|
||||
func releaseStreamInfo(info streamInfo) {
|
||||
info.Reset()
|
||||
streamInfoPool.Put(info)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user