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-10-30 13:01:18 -05:00
2017-10-30 13:01:18 -05:00
2017-10-03 17:23:14 -04:00
2017-09-22 12:14:27 -04:00
2017-04-18 17:56:05 -04:00
2017-10-26 20:57:33 -04:00
2017-10-27 11:52:10 -04:00
2017-10-24 23:36:10 +04:00
2017-10-11 12:48:05 +04:00
2017-10-03 17:23:14 -04:00
2017-04-18 17:56:05 -04:00
2017-10-24 23:36:10 +04:00
Description
No description provided
Apache-2.0 394 MiB
Languages
Go 85.9%
TeX 7.2%
TLA 4.9%
Shell 0.6%
Python 0.5%
Other 0.8%