remove isStats from interface

This commit is contained in:
Menghan Li 2016-11-03 16:02:23 -07:00
parent c0087b3c91
commit e478486783
1 changed files with 0 additions and 15 deletions

View File

@ -48,7 +48,6 @@ import (
// RPCStats contains stats information about RPCs.
// All stats types in this package implements this interface.
type RPCStats interface {
isStats()
// IsClient indicates if the stats is a client stats.
IsClient() bool
}
@ -69,8 +68,6 @@ type InPayload struct {
RecvTime time.Time
}
func (s *InPayload) isStats() {}
// IsClient indicates if the stats is a client stats.
func (s *InPayload) IsClient() bool { return s.Client }
@ -92,8 +89,6 @@ type InHeader struct {
Encryption string
}
func (s *InHeader) isStats() {}
// IsClient indicates if the stats is a client stats.
func (s *InHeader) IsClient() bool { return s.Client }
@ -105,8 +100,6 @@ type InTrailer struct {
WireLength int
}
func (s *InTrailer) isStats() {}
// IsClient indicates if the stats is a client stats.
func (s *InTrailer) IsClient() bool { return s.Client }
@ -126,8 +119,6 @@ type OutPayload struct {
SentTime time.Time
}
func (s *OutPayload) isStats() {}
// IsClient indicates if the stats is a client stats.
func (s *OutPayload) IsClient() bool { return s.Client }
@ -151,8 +142,6 @@ type OutHeader struct {
FailFast bool
}
func (s *OutHeader) isStats() {}
// IsClient indicates if the stats is a client stats.
func (s *OutHeader) IsClient() bool { return s.Client }
@ -164,8 +153,6 @@ type OutTrailer struct {
WireLength int
}
func (s *OutTrailer) isStats() {}
// IsClient indicates if the stats is a client stats.
func (s *OutTrailer) IsClient() bool { return s.Client }
@ -177,8 +164,6 @@ type RPCErr struct {
Error error
}
func (s *RPCErr) isStats() {}
// IsClient indicates if the stats is a client stats.
func (s *RPCErr) IsClient() bool { return s.Client }