stream: make reconnector private

This commit is contained in:
c9s 2022-01-11 01:24:01 +08:00
parent 16ec856a4e
commit a66070d286

View File

@ -284,13 +284,13 @@ func (s *StandardStream) Connect(ctx context.Context) error {
}
// start one re-connector goroutine with the base context
go s.Reconnector(ctx)
go s.reconnector(ctx)
s.EmitStart()
return nil
}
func (s *StandardStream) Reconnector(ctx context.Context) {
func (s *StandardStream) reconnector(ctx context.Context) {
for {
select {