Skip to content
Snippets Groups Projects

Initial implementation of an elasticsearch indexer in Go

Merged Nick Thomas requested to merge 1-initial-implementation into master
All threads resolved!
2 files
+ 2
4
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 1
3
@@ -58,9 +58,7 @@ func GenerateBlobID(parentID, filename string) string {
return fmt.Sprintf("%s_%s", parentID, filename)
}
func (i *Indexer) BuildBlob(file *git.File, commitSHA string) (*Blob, error) {
parentID := i.Submitter.ParentID()
func BuildBlob(file *git.File, parentID, commitSHA string) (*Blob, error) {
if file.Size > maxBlobSize {
return nil, skipTooLargeBlob
}
Loading