Skip to content
Snippets Groups Projects
Commit 61ad782c authored by Malte Bauch's avatar Malte Bauch
Browse files

Add default for switch case and removed channel closing

parent 564057b9
No related branches found
No related tags found
3 merge requests!376Add additional example application hostname-checker,!343Add basic application framework and example application to show interaction between events an NBI,!342Resolve "Add an option to send gNMI Subscribe requests via SBI"
Pipeline #108312 passed
......@@ -368,9 +368,9 @@ func (g *Gnmi) subscribeInternal(ctx context.Context, subcribeCallbackFunc func(
if err := subscriptionInfo.StopContext.Err(); err != nil {
log.Error(err)
}
defer close(g.RespChan)
log.Infof("StopContext for Device: %s was called and Subscription closed.", subscriptionInfo.DeviceName)
return
default:
}
}
}()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment