code: func (a *AddrManager) SetServices(addr *wire.NetAddress, services wire.ServiceFlag) {
  	a.mtx.Lock()
  	defer a.mtx.Unlock()
  
  	ka := a.find(addr)
  	if ka == nil {
  		return
  	}
  
  	// Update the services if needed.
  	if ka.na.Services != services {
  		// ka.na is immutable, so replace it.
  		naCopy := *ka.na
  		naCopy.Services = services
  		ka.na = &naCopy
  	}
  }
docs: // SetServices sets the services for the giiven address to the provided value.