Lock passed by value

Lock passed by value

par Jinyi Xian,
Nombre de réponses : 2

I get a warning from the compiler for line 3167 of gossiper_test.go saying


getPs passes lock by value: go.dedis.ch/cs438/hw2/gossip.history


I think this may be a mistake.

En réponse à Jinyi Xian

Re: Lock passed by value

par Kirill Nikitin,

Hi,

Hmm yes we should probably have used a pointer there to pass the struct. But I think it should not cause any issues for the tests. Do you get any problems with running the tests because of it?

Kirill