mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-02 11:59:00 +08:00
27 lines
366 B
Go
27 lines
366 B
Go
|
package session
|
||
|
|
||
|
type stats struct {
|
||
|
segmentCnt int
|
||
|
channelCnt int
|
||
|
}
|
||
|
|
||
|
func (s *stats) setSegmentCnt(cnt int) {
|
||
|
s.segmentCnt = cnt
|
||
|
}
|
||
|
|
||
|
func (s *stats) getSegmentCnt() int {
|
||
|
return s.segmentCnt
|
||
|
}
|
||
|
|
||
|
func (s *stats) setChannelCnt(cnt int) {
|
||
|
s.channelCnt = cnt
|
||
|
}
|
||
|
|
||
|
func (s *stats) getChannelCnt() int {
|
||
|
return s.channelCnt
|
||
|
}
|
||
|
|
||
|
func newStats() stats {
|
||
|
return stats{}
|
||
|
}
|