mirror of
https://github.com/hanzoai/forge.git
synced 2026-10-30 15:00:39 +00:00
Source files keep their SPDX-License-Identifier and Hanzo copyright line; the Gitea, Gogs and LFS Test Server copyrights they used to repeat now live once in NOTICE, alongside LICENSE. The header lint accepts any copyright line above the SPDX line, so it no longer demands an upstream one. Co-authored-by: Hanzo Dev <[email protected]>
39 lines
755 B
Go
39 lines
755 B
Go
// Copyright 2026 Hanzo AI, Inc. All rights reserved.
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
package queue
|
|
|
|
import "context"
|
|
|
|
type baseDummy struct{}
|
|
|
|
var _ baseQueue = (*baseDummy)(nil)
|
|
|
|
func newBaseDummy(cfg *BaseConfig, unique bool) (baseQueue, error) {
|
|
return &baseDummy{}, nil
|
|
}
|
|
|
|
func (q *baseDummy) PushItem(ctx context.Context, data []byte) error {
|
|
return nil
|
|
}
|
|
|
|
func (q *baseDummy) PopItem(ctx context.Context) ([]byte, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func (q *baseDummy) Len(ctx context.Context) (int, error) {
|
|
return 0, nil
|
|
}
|
|
|
|
func (q *baseDummy) HasItem(ctx context.Context, data []byte) (bool, error) {
|
|
return false, nil
|
|
}
|
|
|
|
func (q *baseDummy) Close() error {
|
|
return nil
|
|
}
|
|
|
|
func (q *baseDummy) RemoveAll(ctx context.Context) error {
|
|
return nil
|
|
}
|