To study whether GPR109A has an anti-inflammatory role in cow mastitis, the mastitis dairy cows were fed diets with or without niacin for 7 d, and the protein levels of pro-inflammatory factors were detected, and the somatic cells were counted. Here, HCAR2 is linked to mastitis.