// once we get health data we need to make a put request // to consul to put the data in the KV Store func writeToConsul(res health.Result, store kp.Store) (time.Time, error) { timeOfPut, _, err := store.PutHealth(resToKPRes(res)) return timeOfPut, err }