summaryrefslogtreecommitdiff
path: root/pkg/custom.go
diff options
context:
space:
mode:
authorJulien Dessaux2024-03-23 14:50:37 +0100
committerJulien Dessaux2024-03-24 09:58:15 +0100
commiteb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb (patch)
treeb7d8bfca9d583fb6a555a73cda36d0c940dd692e /pkg/custom.go
parentfeat(custom): implemented custom promises (diff)
downloadgonf-eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb.tar.gz
gonf-eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb.tar.bz2
gonf-eb9d5f861a7b46a1827c2caa6abbfb8d77e29ffb.zip
chore(promises): make a Status function part of the Promise interface
Diffstat (limited to 'pkg/custom.go')
-rw-r--r--pkg/custom.go9
1 files changed, 2 insertions, 7 deletions
diff --git a/pkg/custom.go b/pkg/custom.go
index 9ed2bca..acca226 100644
--- a/pkg/custom.go
+++ b/pkg/custom.go
@@ -6,16 +6,11 @@ func init() {
customPromises = make([]*CustomPromise, 0)
}
-type CustomPromiseInterface interface {
- Promise
- Status() Status
-}
-
type CustomPromise struct {
- promise CustomPromiseInterface
+ promise Promise
}
-func MakeCustomPromise(p CustomPromiseInterface) *CustomPromise {
+func MakeCustomPromise(p Promise) *CustomPromise {
return &CustomPromise{
promise: p,
}