mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-23 03:17:43 +00:00
portlist: unexport SameInodes method
Signed-off-by: Brad Fitzpatrick <brad@danga.com>
This commit is contained in:
@@ -48,7 +48,7 @@ func (a *Port) lessThan(b *Port) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (a List) SameInodes(b List) bool {
|
||||
func (a List) sameInodes(b List) bool {
|
||||
if a == nil || b == nil || len(a) != len(b) {
|
||||
return false
|
||||
}
|
||||
@@ -76,7 +76,7 @@ func GetList(prev List) (List, error) {
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("listPorts: %s", err)
|
||||
}
|
||||
if pl.SameInodes(prev) {
|
||||
if pl.sameInodes(prev) {
|
||||
// Nothing changed, skip inode lookup
|
||||
return prev, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user