dedis / cothority

Scalable collective authority
Other
426 stars 106 forks source link

Refactor monitor #284

Open ineiti opened 8 years ago

ineiti commented 8 years ago

Delete global variables

ineiti commented 7 years ago

@Liamsi wrote:

1) get rid of global vars, for instance: in measure.go and make sure that deployment and everything else still works (use functions & structs instead of global vars to communicate data across modules)

2) Find and understand pitfalls like this: What is the difference between: StopSink and End (both try to close a connection which is stored in a global var).

In other words: Refactor until you have a clear API and change tests to show how-to use this API.