16 lines
336 B
Go
16 lines
336 B
Go
// Copyright (c) Mainflux
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package internal
|
|
|
|
import (
|
|
"github.com/mainflux/mainflux/internal/clients/grpc"
|
|
mflog "github.com/mainflux/mainflux/logger"
|
|
)
|
|
|
|
func Close(log mflog.Logger, clientHandler grpc.ClientHandler) {
|
|
if err := clientHandler.Close(); err != nil {
|
|
log.Warn(err.Error())
|
|
}
|
|
}
|