Browse Source

Temporary vendor fix for gotapdance

- Avoid Assets().config read/write race condition by using helper that acquires lock
Rod Hynes 3 years ago
parent
commit
3c37c5791a

+ 1 - 1
vendor/github.com/refraction-networking/gotapdance/tapdance/registrar_bidirectional.go

@@ -197,7 +197,7 @@ func (r APIRegistrarBidirectional) unpackRegResp(reg *ConjureReg, regResp *pb.Re
 
 	// Client config -- check if not nil in the registration response
 	if regResp.GetClientConf() != nil {
-		currGen := Assets().config.GetGeneration()
+		currGen := Assets().GetGeneration()
 		incomingGen := regResp.GetClientConf().GetGeneration()
 		Logger().Debugf("received clientconf in regResponse w/ gen %d", incomingGen)
 		if currGen < incomingGen {