Peter Fern

Results 197 comments of Peter Fern

@asdine `IDProvider` can't be both this interface, and a function that returns `func(*DB) error`, per: ```go func Open(path string, stormOptions ...func(*DB) error) (*DB, error) ``` I envisioned something like: ```go...

This supports both stateful and stateless - `last` would be the previous int for auto-increment, and ignored by the ULID implementation.

Right, so declaring the IDProvider attaches it to the DB instance, the meta bucket stores the last ID, which is passed to the attached provider, which returns the next ID....

When I looked at storing gob-encoded data a while back, the primary driver was storage efficiency rather than perf - encoding the type information with every record actually makes gob...

@johnrichter I believe your issue is #50, rather than this one. You can find a temporary workaround there until gopkg is updated.

~I tested this by reverting to d712540 and it still didn't work, so this hasn't been broken by subsequent commits to this repository. Perhaps this has been broken by changes...

This can be closed per #23 - if you want zeros from parse or output, use the option `:keep_zero => true`, as per the updated readme.

Please use ``` code notation ``` so I don't get notified :wink:

Could just read and use the `/etc/default/lightsd` file, rather than requiring overrides: ```diff --- lightsd.service 2017-02-13 06:55:34.000000000 +1100 +++ lightsd.service 2019-06-05 01:00:31.631523776 +1000 @@ -3,7 +3,8 @@ After=network.target [Service] -ExecStart=/usr/bin/lightsd...

This is a problem for us too - our users have many SSH keys and we cannot control the number auth retries that hosting providers allow. We generally have users...