Steven Allen
0f2b217368
ci: bump to go 1.13
2019-12-06 16:30:18 -05:00
bigs
d34a18eba2
Merge pull request #21 from libp2p/bug/panic-after-close
...
[DEPENDENT MERGE] Return error rather than panic in Emit
2019-08-06 16:48:00 -04:00
Cole Brown
7c7260c6f3
Bump go-libp2p-core
2019-08-06 16:37:00 -04:00
bigs
40251732b1
Update test error message
...
Co-Authored-By: Łukasz Magiera <magik6k@users.noreply.github.com>
2019-08-01 09:38:57 -08:00
Cole Brown
217da8e826
Return error when closing already closed emitter
2019-07-31 19:46:51 -04:00
Cole Brown
b1629519a0
Return error rather than panic in Emit
2019-07-30 15:51:57 -04:00
Łukasz Magiera
4afad1f620
Merge pull request #17 from libp2p/fix/with-node
...
nit: fix with-node
2019-06-28 00:40:03 +02:00
Łukasz Magiera
d88ec38bc6
Merge pull request #19 from libp2p/fix/16
...
fix: serialize publishing
2019-06-28 00:38:22 +02:00
Steven Allen
25d54bbbec
fix: serialize publishing
...
Ensure that all subscribers see events in the same order. This also ensures that
the subscribers never see the initial "latest" event after some other event.
fixes #16
2019-06-27 22:34:44 +02:00
Łukasz Magiera
04058af20a
Merge pull request #18 from libp2p/fix/fully-drain
...
fix: completely drain on close
2019-06-27 22:15:01 +02:00
Steven Allen
a77f09c820
fix: completely drain on close
...
Issue: We could partially drain and end up with, e.g., a close event missing a
matching open event.
2019-06-27 20:17:04 +02:00
Steven Allen
7b280b5c1b
nit: fix with-node
...
1. It doesn't return an error and we weren't checking it anyways.
2. Avoid a goroutine unless we need it.
2019-06-27 20:13:36 +02:00
Steven Allen
df5be7d7dd
Merge pull request #11 from libp2p/fix/things
...
Fix close deadlock and Sub type error
2019-06-27 20:13:09 +02:00
Łukasz Magiera
0c299185af
Merge pull request #14 from libp2p/nit/simple-reflect
...
nit: avoid ValueOf
2019-06-27 19:40:02 +02:00
Steven Allen
12782426ed
nit: avoid ValueOf
...
We only need TypeOf.
2019-06-27 19:20:43 +02:00
Łukasz Magiera
9c3fe0580a
Merge pull request #13 from libp2p/feat/buffer-by-default
...
Enable buffering by default
2019-06-25 22:07:48 +02:00
Jakub Sztandera
0976d4b358
Enable buffering by default
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-25 20:47:02 +02:00
Łukasz Magiera
61257f90a2
Merge pull request #12 from libp2p/feat/better-bench
...
Improve benchmarks
2019-06-22 17:41:26 +02:00
Jakub Sztandera
85cd6aa7c7
Add benchmarks for subscribe and emitter
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-22 17:39:16 +02:00
Jakub Sztandera
fc8fa53d99
Clean up format
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-22 15:50:30 +02:00
Jakub Sztandera
facb8f2fed
Reduce number of samples
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-22 15:48:06 +02:00
Jakub Sztandera
454cbe5497
Make the test fail in reasonable time
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-22 15:45:09 +02:00
Jakub Sztandera
d2cb2a10b6
Improve benchmarks
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-22 15:30:12 +02:00
Łukasz Magiera
3fd76c7eac
Add test for #10
2019-06-22 15:14:04 +02:00
Łukasz Magiera
525a0e67fe
fix close deadlock and Sub type error
2019-06-22 12:05:03 +02:00
Łukasz Magiera
6212a929bf
refactor interfaces ( #9 )
2019-06-21 17:50:36 +01:00
Raúl Kripalani
f100eac4ef
Refinements before first release 🎉 ( #7 )
2019-06-20 16:17:57 +01:00
Raúl Kripalani
c7aefba960
update go-libp2p-core dep.
2019-06-20 00:01:35 +01:00
Raúl Kripalani
fe6d9d1489
rename eventbus package. ( #4 )
2019-06-19 16:55:25 +01:00
Łukasz Magiera
131418619d
Merge pull request #1 from libp2p/feat/implement
...
Implement
2019-06-19 17:32:27 +02:00
Raúl Kripalani
015ba825e9
fix compile error in tests.
2019-06-19 16:21:55 +01:00
Raúl Kripalani
8b7b645962
remove superfluous types.
2019-06-19 16:13:28 +01:00
Raúl Kripalani
bd8289f870
make Emitter an interface.
2019-06-19 16:10:03 +01:00
Łukasz Magiera
1ab671b0ca
Merge pull request #2 from libp2p/ci/enable
...
ci: enable
2019-06-19 16:04:46 +02:00
Łukasz Magiera
a1807fd415
Drop the interface
2019-06-19 15:36:31 +02:00
Łukasz Magiera
2341c42dab
Merge pull request #3 from libp2p/feat/interface
...
generify options.
2019-06-19 15:13:27 +02:00
Raúl Kripalani
2ea3b26fbd
generify options.
2019-06-19 14:09:12 +01:00
Łukasz Magiera
04b7ec33de
BasicBus to basicBus
2019-06-19 15:00:22 +02:00
Łukasz Magiera
401bb25f47
return struct from NewBus
2019-06-19 14:48:41 +02:00
Łukasz Magiera
2f028f9607
Update Emitter docs
2019-06-19 14:32:55 +02:00
Łukasz Magiera
942c134291
Move close to EmitFunc
2019-06-19 14:27:37 +02:00
Łukasz Magiera
d23aaa9b5c
Address @stebalien's review
2019-06-19 14:22:10 +02:00
Łukasz Magiera
1cb839f3b0
Document options
2019-06-19 14:13:48 +02:00
Steven Allen
3abafaf475
ci: enable
2019-06-19 14:12:41 +02:00
Łukasz Magiera
71ffb0ebf1
Use reflect.Type in node map
2019-06-19 13:51:25 +02:00
Łukasz Magiera
8b50ba1149
Some more docs
2019-06-19 12:46:59 +02:00
Łukasz Magiera
c54e8ebbe9
Simplify withNode a bit
2019-06-19 12:31:36 +02:00
Łukasz Magiera
5b845983c2
Fix data races
2019-06-19 12:13:18 +02:00
Łukasz Magiera
287e2189af
Stateful emits
2019-06-16 21:42:47 +02:00
Jakub Sztandera
821aef1f4b
Use slice instead of map
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-06-16 19:20:10 +02:00