Skip to content

Commit 7e076a2

Browse files
ggriffithslpabon
authored andcommitted
Update grpcserver.go to add Listener() function
Signed-off-by: Grant Griffiths <[email protected]>
1 parent f45ef94 commit 7e076a2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/grpc/server/grpcserver.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,11 @@ func (s *GrpcServer) IsRunning() bool {
153153
return s.running
154154
}
155155

156+
// Listener returns the listener used for this gRPC server
157+
func (s *GrpcServer) Listener() net.Listener {
158+
return s.listener
159+
}
160+
156161
func (s *GrpcServer) goServe(started chan<- bool) {
157162
s.wg.Add(1)
158163
go func() {

0 commit comments

Comments
 (0)