Error compiling SCC-compile
Bug risk
Critical
624 occurrences in this check
Cause not declared by package context
3346	select {
3347	case <-ctx.Done():
3348		err = ctx.Err()
3349		if errors.Is(err, context.Canceled) && errors.Is(context.Cause(ctx), doneErr) {3350			select {
3351			case vec = <-vch:
3352				if vec == nil || vec.GetId() == "" || vec.GetVector() == nil {
WithCancelCause not declared by package context
3274	vch := make(chan *payload.Object_Vector, 1)
3275	ech := make(chan error, 1)
3276	doneErr := errors.New("done getObject")
3277	ctx, cancel := context.WithCancelCause(ctx)3278	s.eg.Go(func() error {
3279		defer close(vch)
3280		defer close(ech)
DefaultEpsilon not declared by package ngt
 45	WithLoadIndexTimeoutFactor("1ms"),
 46	WithDefaultPoolSize(core.DefaultPoolSize),
 47	WithDefaultRadius(core.DefaultRadius),
 48	WithDefaultEpsilon(core.DefaultEpsilon), 49	WithProactiveGC(true),
 50}
 51
DefaultRadius not declared by package ngt
 44	WithMaxLoadIndexTimeout("10m"),
 45	WithLoadIndexTimeoutFactor("1ms"),
 46	WithDefaultPoolSize(core.DefaultPoolSize),
 47	WithDefaultRadius(core.DefaultRadius), 48	WithDefaultEpsilon(core.DefaultEpsilon),
 49	WithProactiveGC(true),
 50}
DefaultPoolSize not declared by package ngt
 43	WithMinLoadIndexTimeout("3m"),
 44	WithMaxLoadIndexTimeout("10m"),
 45	WithLoadIndexTimeoutFactor("1ms"),
 46	WithDefaultPoolSize(core.DefaultPoolSize), 47	WithDefaultRadius(core.DefaultRadius),
 48	WithDefaultEpsilon(core.DefaultEpsilon),
 49	WithProactiveGC(true),
Cosine not declared by package ngt
10690				fields: fields{
10691					svcCfg: &config.NGT{
10692						Dimension:    128,
10693						DistanceType: core.Cosine.String(),10694						ObjectType:   core.Uint8.String(),
10695						KVSDB:        kvsdbCfg,
10696						VQueue:       vqueueCfg,
NGT not declared by package ngt
10615		svcCfg  *config.NGT
10616		svcOpts []Option
10617
10618		core              core.NGT10619		eg                errgroup.Group
10620		kvs               kvs.BidiMap
10621		fmu               sync.Mutex
NGT not declared by package ngt
10379		ctx context.Context
10380	}
10381	type fields struct {
10382		core              core.NGT10383		eg                errgroup.Group
10384		kvs               kvs.BidiMap
10385		fmap              map[string]uint32
NGT not declared by package ngt
10164
10165func Test_ngt_GetDimensionSize(t *testing.T) {
10166	type fields struct {
10167		core              core.NGT10168		eg                errgroup.Group
10169		kvs               kvs.BidiMap
10170		fmap              map[string]uint32
NGT not declared by package ngt
 9952
 9953func Test_ngt_DeleteVQueueBufferLen(t *testing.T) {
 9954	type fields struct {
 9955		core              core.NGT 9956		eg                errgroup.Group
 9957		kvs               kvs.BidiMap
 9958		fmap              map[string]uint32
NGT not declared by package ngt
 9740
 9741func Test_ngt_InsertVQueueBufferLen(t *testing.T) {
 9742	type fields struct {
 9743		core              core.NGT 9744		eg                errgroup.Group
 9745		kvs               kvs.BidiMap
 9746		fmap              map[string]uint32
NGT not declared by package ngt
 9528
 9529func Test_ngt_Len(t *testing.T) {
 9530	type fields struct {
 9531		core              core.NGT 9532		eg                errgroup.Group
 9533		kvs               kvs.BidiMap
 9534		fmap              map[string]uint32
NGT not declared by package ngt
 9321
 9322func Test_ngt_gc(t *testing.T) {
 9323	type fields struct {
 9324		core              core.NGT 9325		eg                errgroup.Group
 9326		kvs               kvs.BidiMap
 9327		fmap              map[string]uint32
Uint8 not declared by package ngt
10691					svcCfg: &config.NGT{
10692						Dimension:    128,
10693						DistanceType: core.Cosine.String(),
10694						ObjectType:   core.Uint8.String(),10695						KVSDB:        kvsdbCfg,
10696						VQueue:       vqueueCfg,
10697					},
NGT not declared by package ngt
 8897
 8898func Test_ngt_NumberOfCreateIndexExecution(t *testing.T) {
 8899	type fields struct {
 8900		core              core.NGT 8901		eg                errgroup.Group
 8902		kvs               kvs.BidiMap
 8903		fmap              map[string]uint32
NGT not declared by package ngt
 8678		ctx context.Context
 8679	}
 8680	type fields struct {
 8681		core              core.NGT 8682		eg                errgroup.Group
 8683		kvs               kvs.BidiMap
 8684		fmap              map[string]uint32
NGT not declared by package ngt
 8463
 8464func Test_ngt_IsIndexing(t *testing.T) {
 8465	type fields struct {
 8466		core              core.NGT 8467		eg                errgroup.Group
 8468		kvs               kvs.BidiMap
 8469		fmap              map[string]uint32
NGT not declared by package ngt
 8251
 8252func Test_ngt_IsSaving(t *testing.T) {
 8253	type fields struct {
 8254		core              core.NGT 8255		eg                errgroup.Group
 8256		kvs               kvs.BidiMap
 8257		fmap              map[string]uint32
NGT not declared by package ngt
 8030		vec  []float32
 8031	}
 8032	type fields struct {
 8033		core              core.NGT 8034		eg                errgroup.Group
 8035		kvs               kvs.BidiMap
 8036		fmap              map[string]uint32
NGT not declared by package ngt
 7803		uuid string
 7804	}
 7805	type fields struct {
 7806		core              core.NGT 7807		eg                errgroup.Group
 7808		kvs               kvs.BidiMap
 7809		fmap              map[string]uint32
NGT not declared by package ngt
 7577		uuid string
 7578	}
 7579	type fields struct {
 7580		core              core.NGT 7581		eg                errgroup.Group
 7582		kvs               kvs.BidiMap
 7583		fmap              map[string]uint32
NGT not declared by package ngt
 7362
 7363func Test_ngt_mktmp(t *testing.T) {
 7364	type fields struct {
 7365		core              core.NGT 7366		eg                errgroup.Group
 7367		kvs               kvs.BidiMap
 7368		fmap              map[string]uint32
NGT not declared by package ngt
 7143		ctx context.Context
 7144	}
 7145	type fields struct {
 7146		core              core.NGT 7147		eg                errgroup.Group
 7148		kvs               kvs.BidiMap
 7149		fmap              map[string]uint32
NGT not declared by package ngt
 6919		poolSize uint32
 6920	}
 6921	type fields struct {
 6922		core              core.NGT 6923		eg                errgroup.Group
 6924		kvs               kvs.BidiMap
 6925		fmap              map[string]uint32
NGT not declared by package ngt
 6696		ctx context.Context
 6697	}
 6698	type fields struct {
 6699		core              core.NGT 6700		eg                errgroup.Group
 6701		kvs               kvs.BidiMap
 6702		fmap              map[string]uint32