mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-10 09:45:08 +00:00
portlist: unexport GetList
It's an internal implementation detail, and I plan to refactor it for performance (garbage) reasons anyway, so start by hiding it. Updates #5958 Change-Id: I2c0d1f743d3495c5f798d1d8afc364692cd9d290 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
This commit is contained in:

committed by
Brad Fitzpatrick

parent
7b745a1a50
commit
67597bfc9e
@@ -45,7 +45,7 @@ func NewPoller() (*Poller, error) {
|
||||
// Do one initial poll synchronously so we can return an error
|
||||
// early.
|
||||
var err error
|
||||
p.prev, err = GetList(nil)
|
||||
p.prev, err = getList(nil)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -76,7 +76,7 @@ func (p *Poller) Run(ctx context.Context) error {
|
||||
for {
|
||||
select {
|
||||
case <-tick.C:
|
||||
pl, err := GetList(p.prev)
|
||||
pl, err := getList(p.prev)
|
||||
if err != nil {
|
||||
p.Err = err
|
||||
return err
|
||||
|
Reference in New Issue
Block a user