mirror of https://github.com/grpc/grpc-go.git
remove isStats from interface
This commit is contained in:
parent
c0087b3c91
commit
e478486783
|
|
@ -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 }
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue