Rename Basic() to SetBasic()

This commit is contained in:
Travis Turner 2023-03-06 11:23:59 -06:00
parent e8fc445e69
commit 35211cb8c0
No known key found for this signature in database
GPG key ID: 3FB5CF5C97A37B30
2 changed files with 5 additions and 4 deletions

View file

@ -30,7 +30,7 @@ func NewRunner(cfg ConfigForIDK, batcher fbbatch.Batcher, logWriter io.Writer) *
idkMain.Batcher = batcher
idkMain.BatchSize = cfg.BatchSize
idkMain.BatchMaxStaleness = cfg.BatchMaxStaleness
idkMain.Basic()
idkMain.SetBasic()
idkMain.SetLog(logger.NewStandardLogger(logWriter))
kr := &Runner{

View file

@ -245,9 +245,10 @@ func (m *Main) Rename() {
}
}
// Basic sets up Main with basic functionality, excluding those things which are
// not required for some implementations (such as the kafka runner in fbsql).
func (m *Main) Basic() {
// SetBasic sets up Main with basic functionality, excluding those things which
// are not required for some implementations (such as the kafka runner in
// fbsql).
func (m *Main) SetBasic() {
m.basic = true
}