Maint: openvpn loop is a concrete struct

This commit is contained in:
Quentin McGaw (laptop)
2021-07-24 19:14:49 +00:00
parent 8153d4bb2a
commit c8ad9b942a
10 changed files with 20 additions and 20 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/qdm12/gluetun/internal/models"
)
func (l *looper) signalOrSetStatus(status models.LoopStatus) {
func (l *Loop) signalOrSetStatus(status models.LoopStatus) {
if l.userTrigger {
l.userTrigger = false
select {
@@ -19,7 +19,7 @@ func (l *looper) signalOrSetStatus(status models.LoopStatus) {
}
}
func (l *looper) logAndWait(ctx context.Context, err error) {
func (l *Loop) logAndWait(ctx context.Context, err error) {
if err != nil {
l.logger.Error(err.Error())
}