this can be simplified (looks like there was a compilation error anyway):

```go
address := producerData["address"].(string)
broadcast_address, _ := producerData["broadcast_address"]
if broadcast_address != "" {
   address = broadcast_address.(string)
}
```

thanks