Privatize NewUserSystemDbus

Signed-off-by: Shiming Zhang <wzshiming@foxmail.com>
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Shiming Zhang
2021-04-20 11:00:33 +08:00
committed by Kir Kolyshkin
parent 15fee9899f
commit 6122bc8beb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ func (d *dbusConnManager) getConnection() (*systemdDbus.Conn, error) {
func (d *dbusConnManager) newConnection() (*systemdDbus.Conn, error) {
if d.rootless {
return NewUserSystemdDbus()
return newUserSystemdDbus()
}
return systemdDbus.NewWithContext(context.TODO())
}
+2 -2
View File
@@ -17,8 +17,8 @@ import (
"github.com/pkg/errors"
)
// NewUserSystemdDbus creates a connection for systemd user-instance.
func NewUserSystemdDbus() (*systemdDbus.Conn, error) {
// newUserSystemdDbus creates a connection for systemd user-instance.
func newUserSystemdDbus() (*systemdDbus.Conn, error) {
addr, err := DetectUserDbusSessionBusAddress()
if err != nil {
return nil, err