added direction to Actor to prevent confusion

This commit is contained in:
Colin Henry 2020-08-22 18:45:15 -07:00
parent ad5ed58296
commit 4b8fd0b78d

View File

@ -9,7 +9,7 @@ type Func func(db *sql.DB)
type Actor struct { type Actor struct {
DB *sql.DB DB *sql.DB
ActionChan chan Func ActionChan <-chan Func
} }
func (a *Actor) Run(ctx context.Context) error { func (a *Actor) Run(ctx context.Context) error {