Closed rubenhorn closed 2 years ago
aggregator/main.go
for k, v := range aggregations { // TODO implement fmt.Printf("Change participation count of %s by %d\n", k, v)
anything else to implement here?
api/main.go func doesParticipationExist( wouldn't it be better to be called participationExists(
func doesParticipationExist(
participationExists(
json, _ := json.Marshal(participation.ParticipationEvent{ return error, very unlikely an error will happen here but just to be consistent
json, _ := json.Marshal(participation.ParticipationEvent{
var err error any advantage declaring the variable in advance, one line fewer if we don't :)
var err error
Comment by @zen37:
aggregator/main.go
anything else to implement here?
api/main.go
func doesParticipationExist(
wouldn't it be better to be calledparticipationExists(
json, _ := json.Marshal(participation.ParticipationEvent{
return error, very unlikely an error will happen here but just to be consistentvar err error
any advantage declaring the variable in advance, one line fewer if we don't :)