Skip to content

Commit 71b5375

Browse files
committed
*: changes after rebase
Signed-off-by: Miguel Molina <[email protected]>
1 parent aec2e4e commit 71b5375

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

cmd/gitbase/command/server.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ func (l *jaegerLogrus) Error(s string) {
6868
l.Entry.Error(s)
6969
}
7070

71-
func NewDatabaseEngine(readonly bool, version string) *sqle.Engine {
71+
func NewDatabaseEngine(readonly bool, version string, parallelism int) *sqle.Engine {
7272
catalog := sql.NewCatalog()
7373
ab := analyzer.NewBuilder(catalog)
7474
if readonly {
7575
ab = ab.ReadOnly()
7676
}
77-
78-
if c.Parallelism > 1 {
79-
ab = ab.WithParallelism(int(c.Parallelism))
77+
78+
if parallelism > 1 {
79+
ab = ab.WithParallelism(parallelism)
8080
}
8181

8282
a := ab.Build()
@@ -162,7 +162,7 @@ func (c *Server) Execute(args []string) error {
162162

163163
func (c *Server) buildDatabase() error {
164164
if c.engine == nil {
165-
c.engine = NewDatabaseEngine(c.ReadOnly, c.Version)
165+
c.engine = NewDatabaseEngine(c.ReadOnly, c.Version, int(c.Parallelism))
166166
}
167167

168168
c.pool = gitbase.NewRepositoryPool()

integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ func newSquashEngine() *sqle.Engine {
852852

853853
func newBaseEngine() *sqle.Engine {
854854
foo := gitbase.NewDatabase("foo")
855-
engine := command.NewDatabaseEngine(false, "test")
855+
engine := command.NewDatabaseEngine(false, "test", 0)
856856

857857
engine.AddDatabase(foo)
858858
engine.Catalog.RegisterFunctions(function.Functions)

squash_iterator.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ type squashReposIter struct {
4747
repo *Repository
4848
row sql.Row
4949
skipGitErrors bool
50-
done bool
5150
}
5251

5352
// NewAllReposIter returns an iterator that will return all repositories

0 commit comments

Comments
 (0)