diff options
author | Julien Dessaux | 2024-03-24 09:50:52 +0100 |
---|---|---|
committer | Julien Dessaux | 2024-03-24 10:03:55 +0100 |
commit | fe8d8027b37e6d679804d2c6893abe4608b8bad4 (patch) | |
tree | aa7ac473be00b047d39f9975c0bac1f6abd12ce7 /pkg/services.go | |
parent | chore(promises): make a Status function part of the Promise interface (diff) | |
download | gonf-fe8d8027b37e6d679804d2c6893abe4608b8bad4.tar.gz gonf-fe8d8027b37e6d679804d2c6893abe4608b8bad4.tar.bz2 gonf-fe8d8027b37e6d679804d2c6893abe4608b8bad4.zip |
fix(promises): fixed IfRepaired promises chaining
Diffstat (limited to 'pkg/services.go')
-rw-r--r-- | pkg/services.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/services.go b/pkg/services.go index 658cd0e..7e4f114 100644 --- a/pkg/services.go +++ b/pkg/services.go @@ -41,8 +41,8 @@ type ServicePromise struct { status Status } -func (s *ServicePromise) IfRepaired(ps ...Promise) Promise { - s.chain = ps +func (s *ServicePromise) IfRepaired(p ...Promise) Promise { + s.chain = append(s.chain, p...) return s } |