Files
tendermint/common
Anton Kaliaev 4123d54bf6 change service#Start to return just error (Refs #45)
```
@melekes
yeah, bool is superfluous
@ethanfrey
If I remember correctly when I was writing test code, if I call Start() on a Service that is already running, it returns (false, nil). Only if I try to legitimately start it, but it fails in startup do I get an error.
The distinction is quite important to make it safe for reentrant calls. The other approach would be to have a special error type like ErrAlreadyStarted, then check for that in your code explicitly. Kind of like if I make a db call in gorm, and get an error, I check if it is a RecordNotFound error, or whether there was a real error with the db query.
@melekes
Ah, I see. Thanks. I must say I like ErrAlreadyStarted approach more (not just in Golang)
```
2017-11-06 12:18:04 -05:00
..
2017-09-20 02:49:51 -04:00
2017-11-04 00:10:59 -05:00
2017-06-20 17:18:55 -04:00
2017-06-20 17:18:55 -04:00
2017-07-19 15:02:04 -04:00
2017-07-19 15:02:04 -04:00
2017-10-25 11:01:52 +04:00
2017-11-04 08:14:47 -05:00