ipn/ipnlocal,ipnserver: rename {,Set}CurrentUser to {,Set}CurrentUserID

Address comments from https://github.com/tailscale/tailscale/pull/6506#discussion_r1032454064

Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
Maisem Ali
2022-11-25 06:11:06 -08:00
committed by Maisem Ali
parent 0a842f353c
commit c258015165
3 changed files with 30 additions and 20 deletions

View File

@@ -40,15 +40,15 @@ type profileManager struct {
isNewProfile bool
}
// CurrentUser returns the current user ID. It is only non-empty on
// CurrentUserID returns the current user ID. It is only non-empty on
// Windows where we have a multi-user system.
func (pm *profileManager) CurrentUser() string {
func (pm *profileManager) CurrentUserID() string {
return pm.currentUserID
}
// SetCurrentUser sets the current user ID. The uid is only non-empty
// SetCurrentUserID sets the current user ID. The uid is only non-empty
// on Windows where we have a multi-user system.
func (pm *profileManager) SetCurrentUser(uid string) error {
func (pm *profileManager) SetCurrentUserID(uid string) error {
if pm.currentUserID == uid {
return nil
}